Пример #1
0
 public RepositoryBase(IDataBaseFactory factory)
 {
     this.dataContext = factory.DataContext;
     dbset            = dataContext.Set <T>();
 }
Пример #2
0
 public DataBaseFactory()
 {
     dataContext = new SinistreContext();
 }