Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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)));
 }