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
Post a Comment