Example #1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public FieldDefinition(FieldDefinitionType fieldDefinitionType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.FieldDefinitionID     = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.FieldDefinitionTypeID = fieldDefinitionType.FieldDefinitionTypeID;
 }
Example #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static FieldDefinition CreateNewBlank(FieldDefinitionType fieldDefinitionType)
 {
     return(new FieldDefinition(fieldDefinitionType));
 }
 public static FieldDefinition GetFieldDefinitionByFieldDefinitionType(this IQueryable <FieldDefinition> fieldDefinitions, FieldDefinitionType fieldDefinitionType)
 {
     return(GetFieldDefinitionByFieldDefinitionType(fieldDefinitions, fieldDefinitionType.FieldDefinitionTypeID));
 }