/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public OrganizationMatchmakerKeyword(Organization organization, MatchmakerKeyword matchmakerKeyword) : this() { // Mark this as a new object by setting primary key with special value this.OrganizationMatchmakerKeywordID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.OrganizationID = organization.OrganizationID; this.Organization = organization; organization.OrganizationMatchmakerKeywords.Add(this); this.MatchmakerKeywordID = matchmakerKeyword.MatchmakerKeywordID; this.MatchmakerKeyword = matchmakerKeyword; matchmakerKeyword.OrganizationMatchmakerKeywords.Add(this); }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static OrganizationMatchmakerKeyword CreateNewBlank(Organization organization, MatchmakerKeyword matchmakerKeyword) { return(new OrganizationMatchmakerKeyword(organization, matchmakerKeyword)); }