/// <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;
 }
Esempio n. 2
0
 public static void DeleteProjectCustomAttribute(this IQueryable <ProjectCustomAttribute> projectCustomAttributes, ProjectCustomAttribute projectCustomAttributeToDelete)
 {
     DeleteProjectCustomAttribute(projectCustomAttributes, new List <ProjectCustomAttribute> {
         projectCustomAttributeToDelete
     });
 }
 /// <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)));
 }