/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(FundingSourceCustomAttributeDataType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.FundingSourceCustomAttributeDataTypeID == FundingSourceCustomAttributeDataTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static FundingSourceCustomAttributeType CreateNewBlank(FundingSourceCustomAttributeDataType fundingSourceCustomAttributeDataType)
 {
     return(new FundingSourceCustomAttributeType(default(string), fundingSourceCustomAttributeDataType, default(bool), default(bool)));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public FundingSourceCustomAttributeType(string fundingSourceCustomAttributeTypeName, FundingSourceCustomAttributeDataType fundingSourceCustomAttributeDataType, bool isRequired, bool includeInFundingSourceGrid) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.FundingSourceCustomAttributeTypeID     = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.FundingSourceCustomAttributeTypeName   = fundingSourceCustomAttributeTypeName;
     this.FundingSourceCustomAttributeDataTypeID = fundingSourceCustomAttributeDataType.FundingSourceCustomAttributeDataTypeID;
     this.IsRequired = isRequired;
     this.IncludeInFundingSourceGrid = includeInFundingSourceGrid;
 }