/// <summary> /// Enum types are equal by primary key /// </summary> public bool Equals(SupportRequestType other) { if (other == null) { return(false); } return(other.SupportRequestTypeID == SupportRequestTypeID); }
/// <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))); }
/// <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; }