Пример #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public GeospatialAreaRawData(GeospatialAreaType geospatialAreaType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.GeospatialAreaRawDataID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.GeospatialAreaTypeID    = geospatialAreaType.GeospatialAreaTypeID;
     this.GeospatialAreaType      = geospatialAreaType;
     geospatialAreaType.GeospatialAreaRawDatas.Add(this);
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public GeospatialArea(string geospatialAreaName, GeospatialAreaType geospatialAreaType, string geospatialAreaShortName) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.GeospatialAreaID     = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.GeospatialAreaName   = geospatialAreaName;
     this.GeospatialAreaTypeID = geospatialAreaType.GeospatialAreaTypeID;
     this.GeospatialAreaType   = geospatialAreaType;
     geospatialAreaType.GeospatialAreas.Add(this);
     this.GeospatialAreaShortName = geospatialAreaShortName;
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectGeospatialAreaTypeNote(Project project, GeospatialAreaType geospatialAreaType, string notes) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectGeospatialAreaTypeNoteID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID = project.ProjectID;
     this.Project   = project;
     project.ProjectGeospatialAreaTypeNotes.Add(this);
     this.GeospatialAreaTypeID = geospatialAreaType.GeospatialAreaTypeID;
     this.GeospatialAreaType   = geospatialAreaType;
     geospatialAreaType.ProjectGeospatialAreaTypeNotes.Add(this);
     this.Notes = notes;
 }
Пример #4
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static GeospatialAreaRawData CreateNewBlank(GeospatialAreaType geospatialAreaType)
 {
     return(new GeospatialAreaRawData(geospatialAreaType));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectGeospatialAreaTypeNote CreateNewBlank(Project project, GeospatialAreaType geospatialAreaType)
 {
     return(new ProjectGeospatialAreaTypeNote(project, geospatialAreaType, default(string)));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static GeospatialArea CreateNewBlank(GeospatialAreaType geospatialAreaType)
 {
     return(new GeospatialArea(default(string), geospatialAreaType, default(string)));
 }