Example #1
0
 internal IndexState(IEnumerable <Identifier> fields, IndexCustomState customState)
     : this(from field in fields select field.Name, customState)
 {
     foreach (var field in fields)
     {
         FieldType.CheckType(field);
     }
 }
Example #2
0
 internal IndexState(IEnumerable <string> fieldNames, IndexCustomState customState)
 {
     this.fieldNames  = fieldNames.ToList().AsReadOnly();
     this.customState = customState;
 }
Example #3
0
 public IntrospectedIndexCustomState(IntrospectedTable table, string indexName, IndexCustomState customState)
 {
     this.table       = table;
     this.indexName   = indexName;
     this.customState = customState;
 }
Example #4
0
 public static SubObjectState <UniqueIndexType, State> CreatePrimaryKey(Identifier table, string name, IEnumerable <Identifier> fields, IndexCustomState customState)
 {
     return(Create(table, name, true, fields, customState));
 }
Example #5
0
 public State(bool isPrimaryKey, IEnumerable <Identifier> fields, IndexCustomState customState)
 {
     this.isPrimaryKey = isPrimaryKey;
     this.indexState   = new IndexState(fields, customState);
 }
Example #6
0
 public static SubObjectState <NonUniqueIndexType, IndexState> Create(Identifier table, string name, IEnumerable <Identifier> fields, IndexCustomState customState)
 {
     return(CreateState(table, name, new IndexState(fields, customState)));
 }