public void setType(Type t) { if (String.IsNullOrEmpty(this.Name)) { this.Name = NameUtil.getSqlName(t.Name); } }
public virtual void setPropertyInfo(PropertyInfo propertyInfo) { mPropertyInfo = propertyInfo; mPropName = propertyInfo.Name; mPreparePropName = "@" + mPropName; if (String.IsNullOrEmpty(Name)) { Name = NameUtil.getSqlName(mPropName); } }