EAAddinFramework.Databases.Column.getDataType C# (CSharp) Method

getDataType() private method

private getDataType ( ) : DataType
return DataType
        private DataType getDataType()
        {
            if (this._wrappedattribute != null)
            {
                var basetype = this.ownerTable.databaseOwner.databaseFactory.baseDataTypes.FirstOrDefault(x => x.name == this._wrappedattribute.type.name);
                if (basetype != null)
                {
                    if (basetype.hasPrecision)
                    {
                        return  new DataType((BaseDataType)basetype, this._wrappedattribute.precision, this._wrappedattribute.scale);
                    }
                    else
                    {
                        return  new DataType((BaseDataType)basetype, this._wrappedattribute.length, 0);
                    }
                }
            }
            return null;
        }