Error: ApplyChanges is not a member of ...

Topics: EF Runtime, General
Mar 6, 2013 at 9:17 PM
I want to use STE in my VS2010/.NET 4/VB.NET Client-Server Application.

I find some helpfull links, but with EF 4.5 I cannot use the "ApplyChanges"-Method. They is created with the context.tt - but not able to use.

My architecture is client-server and the parts of the entity are in different assemblies. I can delete and Add new entries - but I´m not able to modify a existing on.

What can be the reason?
Developer
Mar 11, 2013 at 11:29 PM
@MyKey0815: You should still be able to use STEs with .NET 4.5 but by default EF uses DbContext for all new apps and STEs have not been updated to support DbContext. The reason for this is that in retrospect STEs don't solve the problem of n-tier development very well for most people. (Some issues include the complexity of the templates and generated entities, and the usage patterns required to ensure that only single instances of entities are replayed into the context.)

For newer apps we encourage people to look into different options. You can find more general help here: http://msdn.microsoft.com/en-us/data/ee712907 and specific help about n-tier applications here: http://msdn.microsoft.com/en-us/data/jj613668

Thanks,
Arthur