/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public GisExcludeIncludeColumnValue(GisExcludeIncludeColumn gisExcludeIncludeColumn, string gisExcludeIncludeColumnValueForFiltering) : this() { // Mark this as a new object by setting primary key with special value this.GisExcludeIncludeColumnValueID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.GisExcludeIncludeColumnID = gisExcludeIncludeColumn.GisExcludeIncludeColumnID; this.GisExcludeIncludeColumn = gisExcludeIncludeColumn; gisExcludeIncludeColumn.GisExcludeIncludeColumnValues.Add(this); this.GisExcludeIncludeColumnValueForFiltering = gisExcludeIncludeColumnValueForFiltering; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static GisExcludeIncludeColumnValue CreateNewBlank(GisExcludeIncludeColumn gisExcludeIncludeColumn) { return(new GisExcludeIncludeColumnValue(gisExcludeIncludeColumn, default(string))); }
public static void DeleteGisExcludeIncludeColumn(this IQueryable <GisExcludeIncludeColumn> gisExcludeIncludeColumns, GisExcludeIncludeColumn gisExcludeIncludeColumnToDelete) { DeleteGisExcludeIncludeColumn(gisExcludeIncludeColumns, new List <GisExcludeIncludeColumn> { gisExcludeIncludeColumnToDelete }); }