Example #1
0
 /// <summary>
 /// Creates a new DBSchemaMetaDataCollection with the specified name, restrictions, parts, and type
 /// </summary>
 /// <param name="name"></param>
 /// <param name="restrictions"></param>
 /// <param name="parts"></param>
 /// <param name="type"></param>
 public DBSchemaMetaDataCollection(string name, int restrictions, int parts, DBMetaDataCollectionType type)
 {
     this.CollectionName          = name;
     this.NumberOfRestrictions    = restrictions;
     this.NumberOfIdentifierParts = parts;
     this.CollectionType          = type;
 }
Example #2
0
 /// <summary>
 /// Gets the DBSchemaMetaDataCollection with the required type (cannot use 'Other').
 /// Returns null if no collection exists of the required type
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public DBSchemaMetaDataCollection this[DBMetaDataCollectionType type]
 {
     get
     {
         if (type == DBMetaDataCollectionType.Other)
         {
             throw new ArgumentOutOfRangeException("Cannot access by Collection type of other");
         }
         DBSchemaMetaDataCollection col;
         this._keys.TryGetValue(type, out col);
         return(col);
     }
 }
Example #3
0
        //
        // .ctors
        //

        /// <summary>
        /// Creates a new (empty) DBSchemaMetaDataCollection with the specified type
        /// </summary>
        /// <param name="type"></param>
        public DBSchemaMetaDataCollection(DBMetaDataCollectionType type) : this(string.Empty, -1, -1, type)
        {
        }