示例#1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(SupportRequestType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.SupportRequestTypeID == SupportRequestTypeID);
 }
示例#2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static SupportRequestLog CreateNewBlank(SupportRequestType supportRequestType)
 {
     return(new SupportRequestLog(default(DateTime), default(string), default(string), supportRequestType, default(string)));
 }
示例#3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public SupportRequestLog(DateTime requestDate, string requestPersonName, string requestPersonEmail, SupportRequestType supportRequestType, string requestDescription) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.SupportRequestLogID  = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.RequestDate          = requestDate;
     this.RequestPersonName    = requestPersonName;
     this.RequestPersonEmail   = requestPersonEmail;
     this.SupportRequestTypeID = supportRequestType.SupportRequestTypeID;
     this.RequestDescription   = requestDescription;
 }