EAAddinFramework.Databases.Transformation.DB2.DB2TableTransformer.setTableName C# (CSharp) 메소드

setTableName() 공개 메소드

public setTableName ( string fixedTableString, int nameCounter ) : void
fixedTableString string
nameCounter int
리턴 void
        public override void setTableName(string fixedTableString, int nameCounter)
        {
            string counterPart = nameCounter.ToString();
            if (counterPart.Length < 2) counterPart = "0" + counterPart;
            string tableName = fixedTableString + counterPart;
            this.logicalClass.alias = tableName;
            this._table.name = tableName;
            foreach (var fkTransformer in this.foreignKeyTransformers) {
                fkTransformer.resetName();
            }
            if (this._primaryKeyTransformer != null) this._primaryKeyTransformer.resetName();
        }