/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public PersonSettingGridColumnSettingFilter(PersonSettingGridColumnSetting personSettingGridColumnSetting, string filterText) : this() { // Mark this as a new object by setting primary key with special value this.PersonSettingGridColumnSettingFilterID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.PersonSettingGridColumnSettingID = personSettingGridColumnSetting.PersonSettingGridColumnSettingID; this.PersonSettingGridColumnSetting = personSettingGridColumnSetting; personSettingGridColumnSetting.PersonSettingGridColumnSettingFilters.Add(this); this.FilterText = filterText; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static PersonSettingGridColumnSettingFilter CreateNewBlank(PersonSettingGridColumnSetting personSettingGridColumnSetting) { return(new PersonSettingGridColumnSettingFilter(personSettingGridColumnSetting, default(string))); }