Пример #1
0
 public Procedure(Schema schema, string name, string definition)
 {
     this.schema = schema;
     this.name = name;
     this.lowercaseName = name.ToLowerInvariant();
     this.definition = definition;
 }
Пример #2
0
        public Table(Schema schema, string name)
        {
            this.schema = schema;
            this.name = name;
            this.lowercaseName = name.ToLowerInvariant();

            this.columnByLowercaseColumnName = new Dictionary<string, TableColumn>();
        }
Пример #3
0
        public View(Schema schema, string name, string definition)
        {
            this.schema = schema;
            this.name = name;
            this.definition = definition;
            this.lowercaseName = name.ToLowerInvariant();

            this.tables = new HashSet<Table>();
        }
Пример #4
0
        public Validation(Database database)
        {
            this.database = database;
            this.schema = new Schema(database);

            this.MissingTableNames = new HashSet<string>();
            this.MissingColumnNamesByTable = new Dictionary<Table, HashSet<string>>();

            this.InvalidTables = new HashSet<Table>();
            this.InvalidColumns = new HashSet<TableColumn>();

            this.Validate();

            this.success = this.MissingTableNames.Count == 0 &
                           this.MissingColumnNamesByTable.Count == 0 &
                           this.InvalidTables.Count == 0 &
                           this.InvalidColumns.Count == 0;
        }
Пример #5
0
 public Index(Schema schema, string name)
 {
     this.schema = schema;
     this.name = name;
     this.lowercaseName = name.ToLowerInvariant();
 }
Пример #6
0
 internal Initialization(Mapping mapping, Schema schema, bool useViews)
 {
     this.mapping = mapping;
     this.schema = schema;
     this.useViews = useViews;
 }
Пример #7
0
 public Index(Schema schema, string name)
 {
     this.schema        = schema;
     this.name          = name;
     this.lowercaseName = name.ToLowerInvariant();
 }