I’ve been playing with Entity Framework, WCF RIA Services and Silverlight 4 recently. I’m impressed with how quickly you can develop an application using these tools and you get a lot of “for free”, for example, the Silverlight user interface will automatically learn about some checks that included as DataAnnotations on the EF model. However, it seems that in a large application, it would be undesirable to have a dependency on EF, which is fully promoted throughout the application, including business logic and user interface.
I know that you can use POCO / IPOCO with the Entity Framework, and this is definitely an option for me. However, if you go this route, you lose some “automatic” things, such as Silverlight, that can demonstrate model validation without any extra work.
How do people deal with this? Do you give up some power and put interfaces between different layers to separate other layers from EF? Or do you refuse the denouement to ensure faster development? Is there any way to get my cake and eat it too that I don’t see?
. , . , , , , - . , , ( ) .
, , EF . . , EF , , EF . , - EF. Interceptors, . , , , .
, EF, . , - DataReaders, . WCF ( RESTful) .
. , , , .
Source: https://habr.com/ru/post/1746166/More articles:Saving tree structures in Databases - javaIs there a way to write NSTimer so that it just pauses the program for a second? - objective-cRuby with LDAP or AD - ruby | fooobar.comRestricted access denied, system.net.mail - .netruby-ldap gem не работает в приложении rails3, но работает в консоли rails - ruby-on-rails-3.2removing items in stages from a list - pythonRefresh request (access & vb.net) - vb.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1746169/how-to-add-request-validation-errors-to-modelstatedictionary-in-aspnet-mvc&usg=ALkJrhi14cX-UPP6MHznOxz3KKCyaEBcdQIn Selenium IDE, can I save an element for use in subsequent statements? - seleniumHow to programmatically get a list of installed programs - visual-c ++All Articles