Ejemplo n.º 1
0
        /// <summary>
        /// 生成工厂模式三层结构代码——BLL数据访问层
        /// </summary>
        public string GetCodeFrameF3BLL(string AssemblyGuid, bool Maxid, bool Exists, bool Add, bool Update, bool Delete, bool GetModel, bool GetModelByCache, bool List)
        {
            BuilderFrameF3 f3      = new BuilderFrameF3(dbobj, DbName, TableName, ModelName, BLLName, DALName, Fieldlist, Keys, NameSpace, Folder, DbHelperName);
            string         strcode = f3.GetBLLCode(AssemblyGuid, Maxid, Exists, Add, Update, Delete, GetModel, GetModelByCache, List, List);

            return(strcode);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 生成工厂模式三层结构代码——IDAL
        /// </summary>
        /// <returns></returns>
        public string GetCodeFrameF3IDAL(bool Maxid, bool Exists, bool Add, bool Update, bool Delete, bool GetModel, bool List, bool ListProc)
        {
            BuilderFrameF3 f3      = new BuilderFrameF3(dbobj, DbName, TableName, ModelName, BLLName, DALName, Fieldlist, Keys, NameSpace, Folder, DbHelperName);
            string         strcode = f3.GetIDALCode(Maxid, Exists, Add, Update, Delete, GetModel, List, ListProc);

            return(strcode);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 生成工厂模式三层结构代码——DALFactory中的方法代码
        /// </summary>
        /// <returns></returns>
        public string GetCodeFrameF3DALFactoryMethod()
        {
            BuilderFrameF3 f3      = new BuilderFrameF3(dbobj, DbName, TableName, ModelName, BLLName, DALName, Fieldlist, Keys, NameSpace, Folder, DbHelperName);
            string         strcode = f3.GetDALFactoryMethodCode();

            return(strcode);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 生成工厂模式三层结构代码——DAL数据访问层
        /// </summary>
        public string GetCodeFrameF3DAL(string AssemblyGuid, bool Maxid, bool Exists, bool Add, bool Update, bool Delete, bool GetModel, bool List)
        {
            BuilderFrameF3 f3 = new BuilderFrameF3(dbobj, DbName, TableName, ModelName, BLLName, DALName, Fieldlist, Keys, NameSpace, Folder, DbHelperName);

            return(f3.GetDALCode(AssemblyGuid, Maxid, Exists, Add, Update, Delete, GetModel, List, ProcPrefix));
        }