Exemple #1
0
        public SchemaTable(Schema schema, string name)
        {
            this.schema = schema;
            this.name = name;

            this.columnByLowercaseColumnName = new Dictionary<string, SchemaTableColumn>();
        }
Exemple #2
0
        public Validation(Database database)
        {
            this.database = database;
            this.mapping = database.Mapping;
            this.schema = new Schema(database);

            this.MissingTableNames = new HashSet<string>();
            this.InvalidTables = new HashSet<SchemaTable>();

            this.MissingTableTypeNames = new HashSet<string>();
            this.InvalidTableTypes = new HashSet<SchemaTableType>();

            this.MissingProcedureNames = new HashSet<string>();
            this.InvalidProcedures = new HashSet<SchemaProcedure>();

            this.Validate();

            this.isValid =
                this.MissingTableNames.Count == 0 &
                this.InvalidTables.Count == 0 &
                this.MissingTableTypeNames.Count == 0 &
                this.InvalidTableTypes.Count == 0 &
                this.MissingProcedureNames.Count == 0 &
                this.InvalidProcedures.Count == 0;
        }
Exemple #3
0
 public SchemaProcedure(Schema schema, string name, string definition)
 {
     this.name = name;
     this.definition = definition;
 }