コード例 #1
0
 public SourceControlBMPSimple(SourceControlBMP sourceControlBMP)
 {
     SourceControlBMPID = sourceControlBMP.SourceControlBMPID;
     SourceControlBMPAttributeCategoryID = sourceControlBMP.SourceControlBMPAttribute
                                           .SourceControlBMPAttributeCategory.SourceControlBMPAttributeCategoryID;
     SourceControlBMPAttributeCategoryName = sourceControlBMP.SourceControlBMPAttribute
                                             .SourceControlBMPAttributeCategory.SourceControlBMPAttributeCategoryName;
     SourceControlBMPAttributeID   = sourceControlBMP.SourceControlBMPAttributeID;
     SourceControlBMPAttributeName = sourceControlBMP.SourceControlBMPAttribute.SourceControlBMPAttributeName;
     IsPresent            = sourceControlBMP.IsPresent;
     SourceControlBMPNote = sourceControlBMP.SourceControlBMPNote;
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanVerifySourceControlBMP CreateNewBlank(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, SourceControlBMP sourceControlBMP)
 {
     return(new WaterQualityManagementPlanVerifySourceControlBMP(waterQualityManagementPlanVerify, sourceControlBMP));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanVerifySourceControlBMP(WaterQualityManagementPlanVerify waterQualityManagementPlanVerify, SourceControlBMP sourceControlBMP) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanVerifySourceControlBMPID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanVerifyID = waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifyID;
     this.WaterQualityManagementPlanVerify   = waterQualityManagementPlanVerify;
     waterQualityManagementPlanVerify.WaterQualityManagementPlanVerifySourceControlBMPs.Add(this);
     this.SourceControlBMPID = sourceControlBMP.SourceControlBMPID;
     this.SourceControlBMP   = sourceControlBMP;
     sourceControlBMP.WaterQualityManagementPlanVerifySourceControlBMPs.Add(this);
 }
コード例 #4
0
 public static void DeleteSourceControlBMP(this IQueryable <SourceControlBMP> sourceControlBMPs, SourceControlBMP sourceControlBMPToDelete)
 {
     DeleteSourceControlBMP(sourceControlBMPs, new List <SourceControlBMP> {
         sourceControlBMPToDelete
     });
 }