예제 #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public AgreementPacificNorthActivity(Agreement reclamationAgreement, PacificNorthActivityList reclamationPacificNorthActivityList) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.AgreementPacificNorthActivityID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ReclamationAgreementID          = reclamationAgreement.AgreementID;
     this.ReclamationAgreement            = reclamationAgreement;
     reclamationAgreement.AgreementPacificNorthActivitiesWhereYouAreTheReclamationAgreement.Add(this);
     this.ReclamationPacificNorthActivityListID = reclamationPacificNorthActivityList.PacificNorthActivityListID;
     this.ReclamationPacificNorthActivityList   = reclamationPacificNorthActivityList;
     reclamationPacificNorthActivityList.AgreementPacificNorthActivitiesWhereYouAreTheReclamationPacificNorthActivityList.Add(this);
 }
예제 #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static AgreementPacificNorthActivity CreateNewBlank(Agreement reclamationAgreement, PacificNorthActivityList reclamationPacificNorthActivityList)
 {
     return(new AgreementPacificNorthActivity(reclamationAgreement, reclamationPacificNorthActivityList));
 }
예제 #3
0
 public static void DeletePacificNorthActivityList(this IQueryable <PacificNorthActivityList> pacificNorthActivityLists, PacificNorthActivityList pacificNorthActivityListToDelete)
 {
     DeletePacificNorthActivityList(pacificNorthActivityLists, new List <PacificNorthActivityList> {
         pacificNorthActivityListToDelete
     });
 }