示例#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)
 {
 }