/// <summary> /// Enum types are equal by primary key /// </summary> public bool Equals(ProjectLocationType other) { if (other == null) { return(false); } return(other.ProjectLocationTypeID == ProjectLocationTypeID); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectLocation(Project project, DbGeometry projectLocationGeometry, ProjectLocationType projectLocationType, string projectLocationName) : this() { // Mark this as a new object by setting primary key with special value this.ProjectLocationID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.ProjectLocations.Add(this); this.ProjectLocationGeometry = projectLocationGeometry; this.ProjectLocationTypeID = projectLocationType.ProjectLocationTypeID; this.ProjectLocationName = projectLocationName; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static ProjectLocation CreateNewBlank(Project project, ProjectLocationType projectLocationType) { return(new ProjectLocation(project, default(DbGeometry), projectLocationType, default(string))); }
public FeatureCollection DetailedLocationsByTypeToGeoJsonFeatureCollection( ProjectLocationType projectLocationType) { return(ProjectLocations.Where(x => x.ProjectLocationTypeID == projectLocationType.ProjectLocationTypeID) .ToGeoJsonFeatureCollection()); }
public ProjectLocationUpdate(ProjectUpdateBatch projectUpdateBatch, DbGeometry projectLocationGeometry, string projectLocationNotes, ProjectLocationType projectLocationType, string projectLocationName, int?arcGisObjectID, string arcGisGlobalID) : this(projectUpdateBatch, projectLocationGeometry, projectLocationType, projectLocationName) { ProjectLocationUpdateNotes = projectLocationNotes; ArcGisObjectID = arcGisObjectID; ArcGisGlobalID = arcGisGlobalID; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static ProjectLocationUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, ProjectLocationType projectLocationType) { return(new ProjectLocationUpdate(projectUpdateBatch, default(DbGeometry), projectLocationType, default(string))); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectLocationUpdate(ProjectUpdateBatch projectUpdateBatch, DbGeometry projectLocationUpdateGeometry, ProjectLocationType projectLocationType, string projectLocationUpdateName) : this() { // Mark this as a new object by setting primary key with special value this.ProjectLocationUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectUpdateBatchID = projectUpdateBatch.ProjectUpdateBatchID; this.ProjectUpdateBatch = projectUpdateBatch; projectUpdateBatch.ProjectLocationUpdates.Add(this); this.ProjectLocationUpdateGeometry = projectLocationUpdateGeometry; this.ProjectLocationTypeID = projectLocationType.ProjectLocationTypeID; this.ProjectLocationUpdateName = projectLocationUpdateName; }
public ProjectLocationTypeJson(ProjectLocationType projectLocationType) { ProjectLocationTypeID = projectLocationType.ProjectLocationTypeID; ProjectLocationTypeName = projectLocationType.ProjectLocationTypeName; ProjectLocationTypeDisplayName = projectLocationType.ProjectLocationTypeDisplayName; }
public ProjectLocation(Project project, string projectlocationName, DbGeometry projectLocationGeometry, ProjectLocationType projectLocationType, string projectLocationNotes) { ProjectLocationNotes = projectLocationNotes; ProjectLocationName = projectlocationName; ProjectLocationGeometry = projectLocationGeometry; ProjectLocationTypeID = projectLocationType.ProjectLocationTypeID; ProjectID = project.PrimaryKey; }