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