Esempio n. 1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public NpccSubbasinProvince(GeospatialArea subbasin, NpccProvince npccProvince) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.NpccSubbasinProvinceID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.SubbasinID             = subbasin.GeospatialAreaID;
     this.Subbasin = subbasin;
     subbasin.NpccSubbasinProvincesWhereYouAreTheSubbasin.Add(this);
     this.NpccProvinceID = npccProvince.NpccProvinceID;
     this.NpccProvince   = npccProvince;
     npccProvince.NpccSubbasinProvinces.Add(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static NpccSubbasinProvince CreateNewBlank(GeospatialArea subbasin, NpccProvince npccProvince)
 {
     return(new NpccSubbasinProvince(subbasin, npccProvince));
 }