entity - Splitting the Db model in EF 4.1 -


anyone suggest me how handle following scenario. have db tables using in of projects creating these tables in every database (common tables + project tables). have common data , business libraries depend on common tables, need split these table entities 2 different libs single dbcontex. using dependency injection pass db context.

i using following vs tools. ef 4.1 vs 2010.

regards, hareen.

you can either use inheritance below or

public class commoncontext:dbcontext { }  public class projectcontext:commoncontext { } 

composition this. (the answer have given earlier question


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -