コード例 #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
     });
 }