2011年3月16日

摘要: 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 阅读全文
posted @ 2011-03-16 12:52 J-Pei 阅读(1029) 评论(2) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2011-03-16 12:48 J-Pei 阅读(446) 评论(0) 推荐(0) 编辑

导航