Geeks With Blogs
Chandradev's Blog Entity Framework
PreCompile query is now available in EF 5.0 i.e in VS 2011
Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ......

Posted On Sunday, April 29, 2012 11:45 AM

Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported.
HiI was doing some test with code first approach in EF. Then while populating the Gridview i was getting error like thisData binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList()... solving this error we have to write the code like this private void FillGrid() { using (var Context = new ......

Posted On Monday, April 9, 2012 6:21 AM

Copyright © Chandradev | Powered by: GeeksWithBlogs.net | Join free