Ejemplo n.º 1
0
 public string GenerateBaseBusinessDataCodeClassName(ITable table)
 {
     return(string.Format(this.BussinessBaseCodeNameFormat,
                          TableGenerationHelper.GenerateNameByTable(table, this.BussinessCodeClassNameFormat,
                                                                    StringCase.PascalCase,
                                                                    this.DbPrefix)));
 }
        public string GenerateMoudleDisplayName(ITable table)
        {
            if (!string.IsNullOrEmpty(table.Description) && !string.IsNullOrEmpty(table.Description.Trim()))
            {
                return(table.Description.Trim());
            }

            return(TableGenerationHelper.GenerateNameByTable(table, "{0}", StringCase.PascalCase, ""));
        }
        public List <ITable> GetAllExportTablesOrders()
        {
            dbRoot db = new dbRoot();

            db.Connect(dbDriver.SQL, this.Connstring);

            List <ITable> tables = TableGenerationHelper.GetAllExportDataOrderTables(db.DefaultDatabase);

            return(tables);
        }
Ejemplo n.º 4
0
 public string GenerateDataCodeClassName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.DataCodeClassNameFormat, StringCase.PascalCase,
                                                      this.DbPrefix));
 }
Ejemplo n.º 5
0
 public string GenerateBaseServiceProxyInterfaceClassName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.BaseCodePrex + this.ServiceProxyInterfaceNameFormat, StringCase.PascalCase,
                                                      this.DbPrefix));
 }
Ejemplo n.º 6
0
 public string GenerateBaseBussinessEncapsulationClassName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.BaseCodePrex + this.GenerateBussinessEncapsulationClassNameFormat, StringCase.PascalCase,
                                                      this.DbPrefix));
 }
Ejemplo n.º 7
0
 public string GenerateCollectionClassName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.EntityCollectionClassNameFormat, StringCase.PascalCase,
                                                      this.DbPrefix));
 }
Ejemplo n.º 8
0
 public string GenerateMappingFileName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, _EntityMappingfileClassNameFormat, StringCase.PascalCase,
                                                      this.DbPrefix));
 }
 public string GetOperatorUCControlClassName(ITable table, string operatorName)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.UcControlClassNameFormat + operatorName, StringCase.PascalCase, ""));
 }
 public string GetOperatorPageClassName(ITable table, string operatorName)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, "{0}" + operatorName + "Page", StringCase.PascalCase, ""));
 }
 public string GenerateWrapperClassMame(ITable table, string fiterNames)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, this.WrapperClassNameFormat, StringCase.PascalCase, fiterNames));
 }
 public string GenerateMoudleCodeName(ITable table)
 {
     return(TableGenerationHelper.GenerateNameByTable(table, "{0}", StringCase.PascalCase, ""));
 }