/// <summary> /// CopyValue 方法 /// </summary> public virtual void CopyValue(SystemMoudleFieldBase obj) { obj.SystemMoudleFieldNameEn = this._systemmoudlefield_nameen; obj.SystemMoudleFieldNameCn = this._systemmoudlefield_namecn; obj.SystemMoudleFieldNameDb = this._systemmoudlefield_namedb; obj.SystemMoudleFieldType = this._systemmoudlefield_type; obj.SystemMoudleFieldIsRequired = this._systemmoudlefield_isrequired; obj.SystemMoudleFieldDefaultValue = this._systemmoudlefield_defaultvalue; obj.SystemMoudleFieldIsKeyField = this._systemmoudlefield_iskeyfield; obj.SystemMoudleFieldSize = this._systemmoudlefield_size; obj.SystemMoudleFieldDescription = this._systemmoudlefield_description; obj.SystemMoudleID = this._systemmoudle_id; }
/// <summary> /// local implementation of Equals based on unique value members /// </summary> public override bool Equals(object obj) { if (this == obj) { return(true); } if ((obj == null) || (obj.GetType() != this.GetType())) { return(false); } SystemMoudleFieldBase castObj = (SystemMoudleFieldBase)obj; return((castObj != null) && (this._systemmoudlefield_id == castObj.SystemMoudleFieldID)); }