Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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)));
 }