摘要:
ADO.NET Entity FrameWork 4.1 RC 版已经发布了ADO.NET Entity FrameWork 4.1 RC 下载下载独立安装程序添加'EntityFramework'NuGet包到项目相关资料http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-release-candidate-available.aspx 阅读全文
摘要:
Entity FrameWork 4.1public SearchMyThings( string a, string b, int c ){ var mywidgets = DBContext.DbSet<Widget>(); if( !a.IsNullOrEmpty ) mywidgets = mywidgets.Where( w => w.AProperty == a ); if( !b.IsNullOrEmpty ) mywidgets = mywidgets.Where( w => w.BProperty == b ); if( c > 0 ) mywi 阅读全文