示例#1
0
 public IntrospectedFulltextIndex(IntrospectedTable table, string catalog, string keyName, IEnumerable <string> columnNames)
 {
     this.table       = table;
     this.catalog     = catalog;
     this.keyName     = keyName;
     this.columnNames = columnNames.ToList().AsReadOnly();
 }
示例#2
0
 public IntrospectedForeignKey(IntrospectedTable fromTable, IntrospectedTable toTable, string name, bool isCascadeDelete, IEnumerable <FieldPair> joins)
 {
     this.fromTable       = fromTable;
     this.toTable         = toTable;
     this.name            = name;
     this.isCascadeDelete = isCascadeDelete;
     this.joins           = joins.ToList().AsReadOnly();
 }
示例#3
0
 public IntrospectedTrigger(string schema, string name, IntrospectedTable table, TriggerTiming timing, TriggerEvents events, string body)
     : base(schema, name)
 {
     this.table  = table;
     this.timing = timing;
     this.events = events;
     this.body   = body;
 }
示例#4
0
 public IntrospectedIndex(IntrospectedTable table, bool isPrimaryKey, bool isUnique, string name, IEnumerable <string> fieldNames)
 {
     this.table        = table;
     this.isPrimaryKey = isPrimaryKey;
     this.isUnique     = isUnique;
     this.name         = name;
     this.fieldNames   = fieldNames.ToList().AsReadOnly();
 }
示例#5
0
 public IntrospectedField(IntrospectedTable table, string name, int ordinalPosition, string dataType, bool isNullable, bool isSequencedPkey, string sequenceName)
 {
     this.table           = table;
     this.name            = name;
     this.ordinalPosition = ordinalPosition;
     this.dataType        = dataType;
     this.isNullable      = isNullable;
     if (sequenceName != null && !isSequencedPkey)
     {
         throw new ArgumentException("Can't specify sequence name on a non-sequenced-pkey field");
     }
     this.isSequencedPkey = isSequencedPkey;
     this.sequenceName    = sequenceName;
 }
示例#6
0
 public IntrospectedIndexCustomState(IntrospectedTable table, string indexName, IndexCustomState customState)
 {
     this.table       = table;
     this.indexName   = indexName;
     this.customState = customState;
 }