public SQLPropAttribute(SQLPropSaveType saveRelationship, SQLSaveType saveType, bool nullable = false, object defaultValue = null, bool unique = false) { SaveRelationship = saveRelationship; SaveType = saveType; Nullable = nullable; DefaultValue = defaultValue; Unique = unique; }
public SQLPropAttribute(SQLPropSaveType saveRelationship, bool nullable = false, object defaultValue = null, bool unique = false) { if (saveRelationship == SQLPropSaveType.Value) { throw new InvalidOperationException("Cannot declare a value relationship without specifying the SaveType"); } SaveRelationship = saveRelationship; Nullable = nullable; DefaultValue = defaultValue; Unique = unique; }