/// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectCustomGridConfiguration(ProjectCustomGridType projectCustomGridType, ProjectCustomGridColumn projectCustomGridColumn, bool isEnabled) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectCustomGridConfigurationID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectCustomGridTypeID          = projectCustomGridType.ProjectCustomGridTypeID;
     this.ProjectCustomGridColumnID        = projectCustomGridColumn.ProjectCustomGridColumnID;
     this.IsEnabled = isEnabled;
 }
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(ProjectCustomGridType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.ProjectCustomGridTypeID == ProjectCustomGridTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectCustomGridConfiguration CreateNewBlank(ProjectCustomGridType projectCustomGridType, ProjectCustomGridColumn projectCustomGridColumn)
 {
     return(new ProjectCustomGridConfiguration(projectCustomGridType, projectCustomGridColumn, default(bool)));
 }