Пример #1
0
 /// <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);
 }
Пример #2
0
 public static void DeleteCostAuthorityObligationRequest(this IQueryable <CostAuthorityObligationRequest> costAuthorityObligationRequests, CostAuthorityObligationRequest costAuthorityObligationRequestToDelete)
 {
     DeleteCostAuthorityObligationRequest(costAuthorityObligationRequests, new List <CostAuthorityObligationRequest> {
         costAuthorityObligationRequestToDelete
     });
 }
Пример #3
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static CostAuthorityObligationRequestPotentialObligationNumberMatch CreateNewBlank(CostAuthorityObligationRequest costAuthorityObligationRequest, ObligationNumber obligationNumber)
 {
     return(new CostAuthorityObligationRequestPotentialObligationNumberMatch(costAuthorityObligationRequest, obligationNumber));
 }