public Database() : base(null, Enums.ObjectType.Database) { AllObjects = new SearchSchemaBase(); _changesOptions = new List<DatabaseChangeStatus>(); Dependencies = new Dependencies(); TablesTypes = new SchemaList<TableType, Database>(this, AllObjects); UserTypes = new SchemaList<UserDataType, Database>(this, AllObjects); XmlSchemas = new SchemaList<XMLSchema, Database>(this, AllObjects); Schemas = new SchemaList<Schema, Database>(this, AllObjects); Procedures = new SchemaList<StoreProcedure, Database>(this, AllObjects); CLRProcedures = new SchemaList<CLRStoreProcedure, Database>(this, AllObjects); CLRFunctions = new SchemaList<CLRFunction, Database>(this, AllObjects); FileGroups = new SchemaList<FileGroup, Database>(this); Rules = new SchemaList<Rule, Database>(this, AllObjects); DDLTriggers = new SchemaList<Trigger, Database>(this, AllObjects); Synonyms = new SchemaList<Synonym, Database>(this, AllObjects); Assemblies = new SchemaList<Assembly, Database>(this, AllObjects); Views = new SchemaList<View, Database>(this, AllObjects); Users = new SchemaList<User, Database>(this, AllObjects); FullText = new SchemaList<FullText, Database>(this, AllObjects); Functions = new SchemaList<Function, Database>(this, AllObjects); PartitionFunctions = new SchemaList<PartitionFunction, Database>(this, AllObjects); PartitionSchemes = new SchemaList<PartitionScheme, Database>(this, AllObjects); Roles = new SchemaList<Role, Database>(this); Tables = new SchemaList<Table, Database>(this, AllObjects); Defaults = new SchemaList<Default, Database>(this, AllObjects); ActionMessage = new SqlAction(this); }
public SchemaList(P parent, SearchSchemaBase allObjects) { this.parent = parent; this.allObjects = allObjects; this.comparion = StringComparison.CurrentCultureIgnoreCase; }