/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public ProjectCustomAttributeValue(ProjectCustomAttribute projectCustomAttribute, string attributeValue) : this() { // Mark this as a new object by setting primary key with special value this.ProjectCustomAttributeValueID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.ProjectCustomAttributeID = projectCustomAttribute.ProjectCustomAttributeID; this.ProjectCustomAttribute = projectCustomAttribute; projectCustomAttribute.ProjectCustomAttributeValues.Add(this); this.AttributeValue = attributeValue; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static ProjectCustomAttributeValue CreateNewBlank(ProjectCustomAttribute projectCustomAttribute) { return(new ProjectCustomAttributeValue(projectCustomAttribute, default(string))); }