#EF4

Entity Framework4.0 (七) EF4的存储过程

前面了解了EF4的CRUD的操作,你会发现EF4使用起来比较简单的。呵呵,之前我们使用数据库的时候,有时会使用存储过程代替在代码中直接使用SQL语句。使用存储过程的好处:提高效率:因为存储过程是经过编译优化后,存储在数据库服务器的。SQL语句在执行的时候,需要临时编译。一般来说,存储过程的效率比SQL语句效率高。降低日...

EF How to use context.Set and context.Entry, which ships with EF4.1 ?

 Hello,Iamtryingtoimplementagenericrepositoryasexplainedonthefollowinglink:-http://www.asp.net/entity-framework/tutorials/implementing-the-repository-and-u...
代码星球 代码星球·2020-04-04