Questions tagged [entityframework.extended]

8 questions
3
votes
0 answers

questions about EntityFramework.Extended caching

When I use FromCache or FromeCacheFirstOrDefault, what is the behavior when the item is not in the cache? Do I need to run a separate query to load the data from the real DB, or do those methods fall back to querying the DB for me? Does the cache…
Brannon
  • 5,324
  • 4
  • 35
  • 83
2
votes
1 answer

EntityFramework.Extended with LinqPad?

I have the latest version of LinqPad and have used it's Nuget feature to import EntityFramework.Extended as I wish to perform some batch updates and deletes for better performance. Unfortunately, I'm getting the following error when attempting to…
Lance Held
  • 339
  • 3
  • 10
2
votes
0 answers

Cast reflected object to reflected generic interface

I am working on a project that is built on .NET 4.5, EF5 and GenericRepository.EntityFramework. I am trying to create a publication service that will take some actions on records in an database used specifically for authoring and move The first…
1
vote
1 answer

EntityFramework.Extended Audit - foreign key property IsRelationship always false

I am using the EntityFramework.Extended library to implement audit logging in my system. However, when I update the foreign key 'TitleId' on my Person object, it does not register it as a foreign key and does not replace the Id with my chosen…
1
vote
0 answers

EntityFramework.Extended on EF6 derived types

Consider the following EF entities: public class Location { [Key] public int LocationId { get; set; } [StringLength(50)] [Required] public string LocationDescription { get; set; } } public class LocationHolding : Location { …
1
vote
1 answer

How to update all rows of a table with an aggregate value referenced by foreign key on an another table in Entity Framework

I have a users table and my User entity has a Rating column. A User has a navigation property called IncomingRatings, which is a one-to-many relationship of list of Rates from a table called rates. A rating can be positive or negative, and is…
0
votes
0 answers

Why update Mysql using EntityFramework.Extended will get an error in SQL syntax,Parameter '@gp1' must be defined

public class Order { [Key] public int ID { get; set; } public string Code { get; set; } public string Type { get; set; } } context.Set().Where(p => p.ID== 2 || p.Type == "def") …
plcly
  • 21
  • 4
0
votes
1 answer

Could not be found

When I use the EntityFramework.Extended in my RiceBuySellProvider project, I got this error in my main project: The type or namespace name I remove the 'RiceBuySellProvider' could not be found (are you missing a using directive or an assembly…
spajce
  • 7,044
  • 5
  • 29
  • 44