Saturday, 15 August 2015

performance - Pre compiled views are not working -



performance - Pre compiled views are not working -

i trying utilize pre-compiled views performance, generated views , same in compile time , @ run time .edmx. before there mismtach of info provider default connection factory, .edmx take sqlclient provider default connection mill alter default connection mill other info provider situation overcome when commented out constructor of class inheriting dbcontext, after connection provder in .edmx file same specified in default connection mill in app.config. so, everthing same in compile time generated .edmx , runtime .edmx.

but when generating views @ compile time , using views optimize performance , next exception thrown, when phone call dbcontext.savechanges()

"the mapping , metadata info entitycontainer 'databasecontext' no longer matches info used create pre-generated views."

above exception suggests there mistmatch checked edmx , same. issue. or have been through this

pre-compiled view not affecting performance

as suggesting different assembly issues . so, case having project1 having few poco class , different project2 refers project1 , utilize poco classes of project1 , dbcontext class has been define in project2 , generating views project2, issue in advance helping

performance entity-framework reflection entity-framework-mapping

No comments:

Post a Comment