Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: PropertyChange at DbContext in EF 6

$
0
0
Hi Arthur!

I'm sorry for my very late answer. We had too much work after a longer illness. In the meantime we tried all ways and decided:

____The migration from ObjectContext to DbContext ist too much effort for this big project. There are to much snares and too much changes necessary. (Thousand lines of program code.)

A big thing is, that PropertyChanged cannot easily and comfortable used in DbContext. So after all, we shifted back to ObjectContext and WILL STILL USE OBJECTCONTEXT IN FUTURE.____

Thank you for your link to:

EF 6.x EntityObject Generator for C#
http://visualstudiogallery.msdn.microsoft.com/66612113-549c-4a9e-a14a-f629ceb3f89a


This works without troubles. Only thing is an error code, after adding tables in the graphical EDMX-Designer. The error is: "Exception from the type 'System.Runtime.InteropServices.COMException' while refreshing over the database. The exception is: There still exists a file or folder with the name "MyModel.Context.tt". Give the element, which has to be added, a unique name or delete the element before." (Translated to english)

After ignoring this message the program runs well.

(After expanding 'MyModel.edmx' we see only this two files: MyModel.Context.tt and MyModel.Designer.cs.)

Please integrate the EntityObject Generator in future in the nuget-Package again and create a possibility to switch between ObjectContext and DbContext comfortably. For us and many others, the ObjectContext is the easier way to create programs.

There are now 26113 downloads from the EF 6.x EntityObject Generator for C#, so you see, there are a lot of programmers who using ObjectContext.

So thank you again very much!

Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images