public MRoleFunction() { id = new MRoleFunctionID(); createdatetime = DateTime.MinValue; createuserid = String.Empty; updatedatetime = DateTime.MinValue; updateuserid = String.Empty; }
public MRoleFunction( int roleid, int functionid) : this() { id = new MRoleFunctionID(roleid, functionid); createdatetime = DateTime.MinValue; createuserid = String.Empty; updatedatetime = DateTime.MinValue; updateuserid = String.Empty; }
/// <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); } MRoleFunctionID castObj = (MRoleFunctionID)obj; return((castObj != null) && (this.roleid == castObj.roleid) && (this.functionid == castObj.functionid)); }