private void setDataType()
{
if (this._wrappedattribute != null)
{
this._wrappedattribute.type = this._wrappedattribute.model.factory.createPrimitiveType(_type.type.name);
if (this.type.type.hasPrecision)
{
this._wrappedattribute.precision = _type.length;
this._wrappedattribute.scale = _type.precision;
}
else
{
this._wrappedattribute.length = _type.length;
}
}
}