New Post: interface navigation properties
Hi, is there any chance to get the ef working with navigation properties, which are declared as an interface type? /// <summary> /// /// </summary> public class Post : IPost { ///...
View ArticleNew Post: PropertyChange at DbContext in EF 6
Hello! We migrated from EF 5 ObjectContext to EF 6 DbContext and changed a lot(!) of code. (We're using Database first approach + EDMX-graphical designer) Under ObjectContext we used this, to subscribe...
View ArticleNew Post: Composite Key in derived class.
Hello, I would know more about composite key when using inheritence. Look at my problem : public class User { public User() { Contacts = new List<ContactUser>(); } [Key] public int ID { get; set;...
View ArticleNew Post: Composite Key in derived class.
Hi Deesmon, EF requires that all mapped types of the same inheritance hierarchy have the same key definition. As you found out already, the only way to have a different key in a derived type is to not...
View ArticleNew Post: Composite Key in derived class.
Thank you for your answer.protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<User>() .HasMany<ContactUser>(u => u.Contacts) .WithOptional(cu =>...
View ArticleNew Post: PropertyChange at DbContext in EF 6
@leveloper If you have an existing app that uses ObjectContext and you don’t want to change all your code, then consider using the code generation templates here:...
View ArticleNew Post: Generate SQL only!
Has there been any discussion about factoring out the part of entity framework that is responsible for generating sql? This is the only part of EF that I and many others are interested in using. EF...
View ArticleNew Post: PropertyChange at DbContext in EF 6
Hi Arthur! Thank you very much for your different approaches! ObjectContext: After I spend much time to shift to DbContext, first I want to try PropertyChange in DbContext. Another reason is, that at...
View ArticleNew Post: Generate SQL only!
Hello ronnieoverby, EF was designed to serve more of the end to end O/RM scenario. Although it should be possible to create a new feature so that given an EF model to obtain access to a straightforward...
View ArticleNew Post: LINQ with multi-table LEFT JOINS results in nested selects?!
I'm unsure if this is a Bug I should report or just a short coming of the Entity Framework so thought I'd ask here first? I have a LINQ query which is attempting to work with a database over which I...
View ArticleNew Post: Is it "normal" using Transaction causes my application run up to 4...
Hi. I am trying to implement transaction in my application and noticed that the same code, runs alot faster without transaction, is that a "normal" behaviour? I am using EF 6.2.0.0, with Firebird...
View ArticleNew Post: PropertyChange at DbContext in EF 6
@leveloper If you want to have property change notifications in POCO entities when using Database First, then I think the best approach is to modify the T4 templates. It's unlikely that we will change...
View ArticleNew Post: Entity Framework 6.1.0 SaveChangesAsync
I have EF helper class that saves changes async:public async Task<int> SaveOrUpdateAsync<TEntity>(TEntity entity) where TEntity : class, IContextEntity { if (entity.Id == 0)...
View ArticleNew Post: Entity Framework 6.1.0 SaveChangesAsync
Task.waitall hangs because you are never starting the tasks you are only assigning them to task variables. In your working code you are calling the method and ther for its working. Change your code to...
View ArticleNew Post: Entity Framework 6.1.0 SaveChangesAsync
Hmm... I see, I was going off the example here: ("Async Query & Save (EF6 onwards)") http://msdn.microsoft.com/en-us/data/jj819165.aspx and they never use Task.Run
View ArticleNew Post: Entity Framework 6.1.0 SaveChangesAsync
I think it's a bug in EF 6.1.0 because this similar async example works fine:class Program { static void Main(string[] args) { Console.WriteLine("Before Async"); TestGoogle().Wait();...
View ArticleNew Post: Portable Class Library for Entity Framework
Hi, Is there is a way to add Entity Framework to Portable Calls Library, Nuget is failing to do add EF to PCL. Does EF supports PCL. Thanks, Sireesh
View ArticleNew Post: EF6 DB Migration
I have the same issue - I can't run my project in EF6 now that I've upgraded from EF5. I have followed the instructions here without luck (the error occurs at runtime).
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
I finally published the convention that allows using TVFs and SProcs in EF6.1 Code First on NuGet. Here is the link: http://www.nuget.org/packages/EntityFramework.CodeFirstStoreFunctions and here is...
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
Sorry about the delay, work and other aspects of life were keeping me from working on this. So I made changes to my fork to include the changes you mentioned. I added condition support for composable...
View Article