Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DatabaseSchema"/> class.
        /// </summary>
        /// <param name="connectionString">The connection string.</param>
        /// <param name="providerName">Name of the provider.</param>
        public DatabaseSchema(string connectionString, string providerName)
        {
            ConnectionString = connectionString;
            Provider         = providerName;

            _packages           = new List <DatabasePackage>();
            _views              = new List <DatabaseView>();
            _users              = new List <DatabaseUser>();
            _sequences          = new List <DatabaseSequence>();
            _functions          = new List <DatabaseFunction>();
            _tables             = new List <DatabaseTable>();
            _storedProcedures   = new List <DatabaseStoredProcedure>();
            _dataTypes          = new List <DataType>();
            _topLevelProperties = new SerializableAdditionalProperties();
        }
Exemplo n.º 2
0
 /// <summary>
 /// constructor for derived classes
 /// </summary>
 protected NamedObject()
 {
     AdditionalProperties = new SerializableAdditionalProperties();
 }