コード例 #1
0
 private static void InistStaticModels()
 {
     fac           = new Soway.Model.AssemblyModelFactory(typeof(Model).Assembly);
     ModeMode      = fac.GetModel(typeof(Model));
     ViewMode      = fac.GetModel(typeof(Soway.Model.View.View));
     ModuleMode    = fac.GetModel(typeof(Module));
     RelationModel = fac.GetModel(typeof(Relation));
 }
コード例 #2
0
 public ObjectContext(Soway.Model.SqlCon sqlCon, Context.ICurrentContextFactory conFac)
 {
     Model       = new Soway.Model.AssemblyModelFactory(typeof(T).Assembly).GetModel(typeof(T));
     this.ConFac = conFac;
     this.SqlCon = sqlCon;
 }