EAAddinFramework.Databases.Transformation.DB2.DB2TableTransformer.setTableName C# (CSharp) Method

setTableName() public method

public setTableName ( string fixedTableString, int nameCounter ) : void
fixedTableString string
nameCounter int
return 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();
        }