Пример #1
0
 public ModelManagerDataSet(ModelMgr modelMgr)
 {
     this.modelMgr = modelMgr;
     dataset       = new DataSet();
     entityTypes   = new List <Type>();
     typeTableMap  = new Dictionary <Type, DataTable>();
 }
Пример #2
0
 public ModelTable(ModelMgr modelMgr, IDbContextService db, DataTable backingTable, List <IEntity> modelCollection)
 {
     this.modelMgr = modelMgr;
     this.db       = db;
     dt            = backingTable;
     items         = modelCollection;
     WireUpEvents(dt);
 }
Пример #3
0
 public ModelTable(ModelMgr modelMgr, DataContext context, DataTable backingTable, List <IEntity> modelCollection)
 {
     this.modelMgr = modelMgr;
     this.context  = context;
     dt            = backingTable;
     items         = modelCollection;
     WireUpEvents(dt);
     RegisterWithModelManager();
 }
Пример #4
0
        public static ModelManagerDataSet CreateDataSet(this ModelMgr mmgr)
        {
            var mmds = new ModelManagerDataSet(new ModelMgr(mmgr.DataContext));

            return(mmds);
        }
Пример #5
0
 public ModelView(ModelMgr modelMgr, IDbContextService db, DataTable backingTable, List <IEntity> modelCollection) :
     base(modelMgr, db, backingTable, modelCollection)
 {
 }
Пример #6
0
 public ModelView(ModelMgr modelMgr, DataContext context, DataTable backingTable, List <IEntity> modelCollection) :
     base(modelMgr, context, backingTable, modelCollection)
 {
 }