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)); }
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; }