asp.net - EF Pre-generated views and multiple Contexts -
in our environment have more 200 tables , using ef 5.0 code first manage database. our software allows users modify entities , add custom fields them.
out of 200 more 100 of them system entities fixed , not customizable.
the initial load time of application more 2 minutes !!!!
we feel if can somehow use ef pre-generated views fixed entities can boost initial warm time.
the question is, under condition(s) ef allows have pre-generated views number of entities within our project?
if refer context menu option 
yes, view per context
then resulting file context in question. check source of generated view. see constructor refers context name. checks view , context still match using context hash.
/// </summary> public viewsforbaseentitysetscc0a5f35d57704f5e501b804cb5cffc8dcad8c8e1afc199b8c68fcd54d47ff7a() { this.edmentitycontainername = "the db context name"; this.storeentitycontainername = "codefirstdatabase"; this.hashovermappingclosure = "c7c56b72d1e7053b77daa9e4fb813dbb5ad00ae0a084f07f58399324dd70e906"; this.hashoverallextentviews = "5fae06be83f62e86b71260bebb0e53a51d8b533588febbefbdcbaf628e514062"; this.viewcount = 62; }
Comments
Post a Comment