/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(GrantAllocationAwardContractorInvoiceType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.GrantAllocationAwardContractorInvoiceTypeID == GrantAllocationAwardContractorInvoiceTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static GrantAllocationAwardContractorInvoice CreateNewBlank(GrantAllocationAward grantAllocationAward, GrantAllocationAwardContractorInvoiceType grantAllocationAwardContractorInvoiceType)
 {
     return(new GrantAllocationAwardContractorInvoice(grantAllocationAward, default(string), default(string), default(DateTime), grantAllocationAwardContractorInvoiceType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public GrantAllocationAwardContractorInvoice(GrantAllocationAward grantAllocationAward, string grantAllocationAwardContractorInvoiceDescription, string grantAllocationAwardContractorInvoiceNumber, DateTime grantAllocationAwardContractorInvoiceDate, GrantAllocationAwardContractorInvoiceType grantAllocationAwardContractorInvoiceType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.GrantAllocationAwardContractorInvoiceID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.GrantAllocationAwardID = grantAllocationAward.GrantAllocationAwardID;
     this.GrantAllocationAward   = grantAllocationAward;
     grantAllocationAward.GrantAllocationAwardContractorInvoices.Add(this);
     this.GrantAllocationAwardContractorInvoiceDescription = grantAllocationAwardContractorInvoiceDescription;
     this.GrantAllocationAwardContractorInvoiceNumber      = grantAllocationAwardContractorInvoiceNumber;
     this.GrantAllocationAwardContractorInvoiceDate        = grantAllocationAwardContractorInvoiceDate;
     this.GrantAllocationAwardContractorInvoiceTypeID      = grantAllocationAwardContractorInvoiceType.GrantAllocationAwardContractorInvoiceTypeID;
 }