/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public OnlandVisualTrashAssessmentObservationPhotoStaging(FileResource fileResource, OnlandVisualTrashAssessment onlandVisualTrashAssessment) : this() { // Mark this as a new object by setting primary key with special value this.OnlandVisualTrashAssessmentObservationPhotoStagingID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FileResourceID = fileResource.FileResourceID; this.FileResource = fileResource; fileResource.OnlandVisualTrashAssessmentObservationPhotoStagings.Add(this); this.OnlandVisualTrashAssessmentID = onlandVisualTrashAssessment.OnlandVisualTrashAssessmentID; this.OnlandVisualTrashAssessment = onlandVisualTrashAssessment; onlandVisualTrashAssessment.OnlandVisualTrashAssessmentObservationPhotoStagings.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public FundingSourceCustomAttribute(FundingSource fundingSource, FundingSourceCustomAttributeType fundingSourceCustomAttributeType) : this() { // Mark this as a new object by setting primary key with special value this.FundingSourceCustomAttributeID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FundingSourceID = fundingSource.FundingSourceID; this.FundingSource = fundingSource; fundingSource.FundingSourceCustomAttributes.Add(this); this.FundingSourceCustomAttributeTypeID = fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeID; this.FundingSourceCustomAttributeType = fundingSourceCustomAttributeType; fundingSourceCustomAttributeType.FundingSourceCustomAttributes.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public StateProvince(string stateProvinceAbbreviation, string stateProvinceName, bool isBpaRelevant, Country country) : this() { // Mark this as a new object by setting primary key with special value this.StateProvinceID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.StateProvinceAbbreviation = stateProvinceAbbreviation; this.StateProvinceName = stateProvinceName; this.IsBpaRelevant = isBpaRelevant; this.CountryID = country.CountryID; this.Country = country; country.StateProvinces.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectUpdate(ProjectUpdateBatch projectUpdateBatch, ProjectStage projectStage, string projectDescription, ProjectLocationSimpleType projectLocationSimpleType, bool locationIsPrivate) : this() { // Mark this as a new object by setting primary key with special value this.ProjectUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectUpdateBatchID = projectUpdateBatch.ProjectUpdateBatchID; this.ProjectUpdateBatch = projectUpdateBatch; this.ProjectStageID = projectStage.ProjectStageID; this.ProjectDescription = projectDescription; this.ProjectLocationSimpleTypeID = projectLocationSimpleType.ProjectLocationSimpleTypeID; this.LocationIsPrivate = locationIsPrivate; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectGeospatialArea(Project project, GeospatialArea geospatialArea) : this() { // Mark this as a new object by setting primary key with special value this.ProjectGeospatialAreaID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.ProjectGeospatialAreas.Add(this); this.GeospatialAreaID = geospatialArea.GeospatialAreaID; this.GeospatialArea = geospatialArea; geospatialArea.ProjectGeospatialAreas.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public FundingEventFundingSource(FundingSource fundingSource, FundingEvent fundingEvent) : this() { // Mark this as a new object by setting primary key with special value this.FundingEventFundingSourceID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FundingSourceID = fundingSource.FundingSourceID; this.FundingSource = fundingSource; fundingSource.FundingEventFundingSources.Add(this); this.FundingEventID = fundingEvent.FundingEventID; this.FundingEvent = fundingEvent; fundingEvent.FundingEventFundingSources.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public MatchmakerOrganizationClassification(Organization organization, Classification classification) : this() { // Mark this as a new object by setting primary key with special value this.MatchmakerOrganizationClassificationID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.OrganizationID = organization.OrganizationID; this.Organization = organization; organization.MatchmakerOrganizationClassifications.Add(this); this.ClassificationID = classification.ClassificationID; this.Classification = classification; classification.MatchmakerOrganizationClassifications.Add(this); }
/// <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); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ReportTemplate(FileResourceInfo fileResourceInfo, string displayName, ReportTemplateModelType reportTemplateModelType, ReportTemplateModel reportTemplateModel) : this() { // Mark this as a new object by setting primary key with special value this.ReportTemplateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FileResourceInfoID = fileResourceInfo.FileResourceInfoID; this.FileResourceInfo = fileResourceInfo; fileResourceInfo.ReportTemplates.Add(this); this.DisplayName = displayName; this.ReportTemplateModelTypeID = reportTemplateModelType.ReportTemplateModelTypeID; this.ReportTemplateModelID = reportTemplateModel.ReportTemplateModelID; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectEvaluationSelectedValue(ProjectEvaluation projectEvaluation, EvaluationCriteriaValue evaluationCriteriaValue) : this() { // Mark this as a new object by setting primary key with special value this.ProjectEvaluationSelectedValueID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectEvaluationID = projectEvaluation.ProjectEvaluationID; this.ProjectEvaluation = projectEvaluation; projectEvaluation.ProjectEvaluationSelectedValues.Add(this); this.EvaluationCriteriaValueID = evaluationCriteriaValue.EvaluationCriteriaValueID; this.EvaluationCriteriaValue = evaluationCriteriaValue; evaluationCriteriaValue.ProjectEvaluationSelectedValues.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public WaterQualityManagementPlan(StormwaterJurisdiction stormwaterJurisdiction, string waterQualityManagementPlanName, TrashCaptureStatusType trashCaptureStatusType, WaterQualityManagementPlanModelingApproach waterQualityManagementPlanModelingApproach) : this() { // Mark this as a new object by setting primary key with special value this.WaterQualityManagementPlanID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.StormwaterJurisdictionID = stormwaterJurisdiction.StormwaterJurisdictionID; this.StormwaterJurisdiction = stormwaterJurisdiction; stormwaterJurisdiction.WaterQualityManagementPlans.Add(this); this.WaterQualityManagementPlanName = waterQualityManagementPlanName; this.TrashCaptureStatusTypeID = trashCaptureStatusType.TrashCaptureStatusTypeID; this.WaterQualityManagementPlanModelingApproachID = waterQualityManagementPlanModelingApproach.WaterQualityManagementPlanModelingApproachID; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectProgram(Project project, Program program) : this() { // Mark this as a new object by setting primary key with special value this.ProjectProgramID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.ProjectPrograms.Add(this); this.ProgramID = program.ProgramID; this.Program = program; program.ProjectPrograms.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public GrantAllocationAwardLandownerCostShareLineItem(Project project, LandownerCostShareLineItemStatus landownerCostShareLineItemStatus, decimal grantAllocationAwardLandownerCostShareLineItemAllocatedAmount, decimal grantAllocationAwardLandownerCostShareLineItemTotalCost) : this() { // Mark this as a new object by setting primary key with special value this.GrantAllocationAwardLandownerCostShareLineItemID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.GrantAllocationAwardLandownerCostShareLineItems.Add(this); this.LandownerCostShareLineItemStatusID = landownerCostShareLineItemStatus.LandownerCostShareLineItemStatusID; this.GrantAllocationAwardLandownerCostShareLineItemAllocatedAmount = grantAllocationAwardLandownerCostShareLineItemAllocatedAmount; this.GrantAllocationAwardLandownerCostShareLineItemTotalCost = grantAllocationAwardLandownerCostShareLineItemTotalCost; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public OrganizationTypeOrganizationRelationshipType(OrganizationType organizationType, OrganizationRelationshipType organizationRelationshipType) : this() { // Mark this as a new object by setting primary key with special value this.OrganizationTypeOrganizationRelationshipTypeID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.OrganizationTypeID = organizationType.OrganizationTypeID; this.OrganizationType = organizationType; organizationType.OrganizationTypeOrganizationRelationshipTypes.Add(this); this.OrganizationRelationshipTypeID = organizationRelationshipType.OrganizationRelationshipTypeID; this.OrganizationRelationshipType = organizationRelationshipType; organizationRelationshipType.OrganizationTypeOrganizationRelationshipTypes.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public GrantAllocationProgramManager(GrantAllocation grantAllocation, Person person) : this() { // Mark this as a new object by setting primary key with special value this.GrantAllocationProgramManagerID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.GrantAllocationID = grantAllocation.GrantAllocationID; this.GrantAllocation = grantAllocation; grantAllocation.GrantAllocationProgramManagers.Add(this); this.PersonID = person.PersonID; this.Person = person; person.GrantAllocationProgramManagers.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields in preparation for insert into database /// </summary> public FiscalQuarter(int fiscalQuarterNumber, string fiscalQuarterName, string fiscalQuarterDisplayName, int fiscalQuarterStartCalendarMonth, int fiscalQuarterStartCalendarDay) : this() { // Mark this as a new object by setting primary key with special value this.FiscalQuarterID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FiscalQuarterNumber = fiscalQuarterNumber; this.FiscalQuarterName = fiscalQuarterName; this.FiscalQuarterDisplayName = fiscalQuarterDisplayName; this.FiscalQuarterStartCalendarMonth = fiscalQuarterStartCalendarMonth; this.FiscalQuarterStartCalendarDay = fiscalQuarterStartCalendarDay; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields in preparation for insert into database /// </summary> public SupportRequestLog(DateTime requestDate, string requestPersonName, string requestPersonEmail, int supportRequestTypeID, string requestDescription) : this() { // Mark this as a new object by setting primary key with special value this.SupportRequestLogID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.RequestDate = requestDate; this.RequestPersonName = requestPersonName; this.RequestPersonEmail = requestPersonEmail; this.SupportRequestTypeID = supportRequestTypeID; this.RequestDescription = requestDescription; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectNoFundingSourceIdentified(Project project, CostType costType) : this() { // Mark this as a new object by setting primary key with special value this.ProjectNoFundingSourceIdentifiedID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.ProjectNoFundingSourceIdentifieds.Add(this); this.CostTypeID = costType.CostTypeID; this.CostType = costType; costType.ProjectNoFundingSourceIdentifieds.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields in preparation for insert into database /// </summary> public Program(int organizationID, bool programIsActive, DateTime programCreateDate, int programCreatePersonID, bool isDefaultProgramForImportOnly) : this() { // Mark this as a new object by setting primary key with special value this.ProgramID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.OrganizationID = organizationID; this.ProgramIsActive = programIsActive; this.ProgramCreateDate = programCreateDate; this.ProgramCreatePersonID = programCreatePersonID; this.IsDefaultProgramForImportOnly = isDefaultProgramForImportOnly; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public CustomPageImage(CustomPage customPage, FileResourceInfo fileResourceInfo) : this() { // Mark this as a new object by setting primary key with special value this.CustomPageImageID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.CustomPageID = customPage.CustomPageID; this.CustomPage = customPage; customPage.CustomPageImages.Add(this); this.FileResourceInfoID = fileResourceInfo.FileResourceInfoID; this.FileResourceInfo = fileResourceInfo; fileResourceInfo.CustomPageImages.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public TreatmentBMPTypeCustomAttributeType(TreatmentBMPType treatmentBMPType, CustomAttributeType customAttributeType) : this() { // Mark this as a new object by setting primary key with special value this.TreatmentBMPTypeCustomAttributeTypeID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.TreatmentBMPTypeID = treatmentBMPType.TreatmentBMPTypeID; this.TreatmentBMPType = treatmentBMPType; treatmentBMPType.TreatmentBMPTypeCustomAttributeTypes.Add(this); this.CustomAttributeTypeID = customAttributeType.CustomAttributeTypeID; this.CustomAttributeType = customAttributeType; customAttributeType.TreatmentBMPTypeCustomAttributeTypes.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectPriorityLandscapeUpdate(ProjectUpdateBatch projectUpdateBatch, PriorityLandscape priorityLandscape) : this() { // Mark this as a new object by setting primary key with special value this.ProjectPriorityLandscapeUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectUpdateBatchID = projectUpdateBatch.ProjectUpdateBatchID; this.ProjectUpdateBatch = projectUpdateBatch; projectUpdateBatch.ProjectPriorityLandscapeUpdates.Add(this); this.PriorityLandscapeID = priorityLandscape.PriorityLandscapeID; this.PriorityLandscape = priorityLandscape; priorityLandscape.ProjectPriorityLandscapeUpdates.Add(this); }
/// <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> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public CostAuthorityObligationRequestPotentialObligationNumberMatch(CostAuthorityObligationRequest costAuthorityObligationRequest, ObligationNumber obligationNumber) : this() { // Mark this as a new object by setting primary key with special value this.CostAuthorityObligationRequestPotentialObligationNumberMatchID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.CostAuthorityObligationRequestID = costAuthorityObligationRequest.CostAuthorityObligationRequestID; this.CostAuthorityObligationRequest = costAuthorityObligationRequest; costAuthorityObligationRequest.CostAuthorityObligationRequestPotentialObligationNumberMatches.Add(this); this.ObligationNumberID = obligationNumber.ObligationNumberID; this.ObligationNumber = obligationNumber; obligationNumber.CostAuthorityObligationRequestPotentialObligationNumberMatches.Add(this); }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectPerson(Project project, Person person, ProjectPersonRelationshipType projectPersonRelationshipType) : this() { // Mark this as a new object by setting primary key with special value this.ProjectPersonID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectID = project.ProjectID; this.Project = project; project.ProjectPeople.Add(this); this.PersonID = person.PersonID; this.Person = person; person.ProjectPeople.Add(this); this.ProjectPersonRelationshipTypeID = projectPersonRelationshipType.ProjectPersonRelationshipTypeID; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields in preparation for insert into database /// </summary> public DocumentLibraryDocument(int documentLibraryID, int documentCategoryID, string documentTitle, int fileResourceInfoID, DateTime lastUpdateDate, int lastUpdatePersonID) : this() { // Mark this as a new object by setting primary key with special value this.DocumentLibraryDocumentID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.DocumentLibraryID = documentLibraryID; this.DocumentCategoryID = documentCategoryID; this.DocumentTitle = documentTitle; this.FileResourceInfoID = fileResourceInfoID; this.LastUpdateDate = lastUpdateDate; this.LastUpdatePersonID = lastUpdatePersonID; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectPersonUpdate(ProjectUpdateBatch projectUpdateBatch, Person person, ProjectPersonRelationshipType projectPersonRelationshipType) : this() { // Mark this as a new object by setting primary key with special value this.ProjectPersonUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectUpdateBatchID = projectUpdateBatch.ProjectUpdateBatchID; this.ProjectUpdateBatch = projectUpdateBatch; projectUpdateBatch.ProjectPersonUpdates.Add(this); this.PersonID = person.PersonID; this.Person = person; person.ProjectPersonUpdates.Add(this); this.ProjectPersonRelationshipTypeID = projectPersonRelationshipType.ProjectPersonRelationshipTypeID; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields in preparation for insert into database /// </summary> public ProjectImage(int fileResourceID, int projectID, string caption, string credit, bool isKeyPhoto, bool excludeFromFactSheet) : this() { // Mark this as a new object by setting primary key with special value this.ProjectImageID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.FileResourceID = fileResourceID; this.ProjectID = projectID; this.Caption = caption; this.Credit = credit; this.IsKeyPhoto = isKeyPhoto; this.ExcludeFromFactSheet = excludeFromFactSheet; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public Delineation(DbGeometry delineationGeometry, DelineationType delineationType, bool isVerified, TreatmentBMP treatmentBMP, DateTime dateLastModified, bool hasDiscrepancies) : this() { // Mark this as a new object by setting primary key with special value this.DelineationID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.DelineationGeometry = delineationGeometry; this.DelineationTypeID = delineationType.DelineationTypeID; this.IsVerified = isVerified; this.TreatmentBMPID = treatmentBMP.TreatmentBMPID; this.TreatmentBMP = treatmentBMP; this.DateLastModified = dateLastModified; this.HasDiscrepancies = hasDiscrepancies; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public GrantAllocationNote(GrantAllocation grantAllocation, Person createdByPerson, DateTime createdDate) : this() { // Mark this as a new object by setting primary key with special value this.GrantAllocationNoteID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.GrantAllocationID = grantAllocation.GrantAllocationID; this.GrantAllocation = grantAllocation; grantAllocation.GrantAllocationNotes.Add(this); this.CreatedByPersonID = createdByPerson.PersonID; this.CreatedByPerson = createdByPerson; createdByPerson.GrantAllocationNotesWhereYouAreTheCreatedByPerson.Add(this); this.CreatedDate = createdDate; }