Example #1
0
 public GenericRepo()
 {
     context = new CentisoftContext();
     dbset   = context.Set <T>();
 }
Example #2
0
 //public GenericRepo()
 //{
 //    context = new CentisoftContext();
 //    dbset = context.Set<T>();
 //}
 public GenericRepo(CentisoftContext context)
 {
     this.context = context;
     dbset        = context.Set <T>();
 }