コード例 #1
0
 public MRoleFunction()
 {
     id             = new MRoleFunctionID();
     createdatetime = DateTime.MinValue;
     createuserid   = String.Empty;
     updatedatetime = DateTime.MinValue;
     updateuserid   = String.Empty;
 }
コード例 #2
0
 public MRoleFunction(
     int roleid,
     int functionid)
     : this()
 {
     id             = new MRoleFunctionID(roleid, functionid);
     createdatetime = DateTime.MinValue;
     createuserid   = String.Empty;
     updatedatetime = DateTime.MinValue;
     updateuserid   = String.Empty;
 }
コード例 #3
0
        /// <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));
        }