/// <summary>
 /// Initializes a new instance of the IndexColumnMetadataCollection class that is a read-only wrapper around the specified list.
 /// </summary>
 /// <param name="source">The source.</param>
 public IndexColumnMetadataCollection(IEnumerable <IndexColumnMetadata <TDbType> > source) : base(source.ToList())
 {
     GenericCollection = new IndexColumnMetadataCollection(this);
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="IndexMetadata{TName, TDbType}"/> class.</summary>
 /// <param name="tableName">Name of the table (or view).</param>
 /// <param name="name">The name.</param>
 /// <param name="isPrimaryKey">if set to <c>true</c> is a primary key.</param>
 /// <param name="isUnique">if set to <c>true</c> is a unique index.</param>
 /// <param name="isUniqueConstraint">if set to <c>true</c> is a unique constraint.</param>
 /// <param name="columns">The columns.</param>
 /// <param name="indexSizeKB">Approximate index size in KB</param>
 /// <param name="rowCount">Approximate row count</param>
 /// <param name="indexType">Type of the index.</param>
 /// <exception cref="ArgumentNullException">columns</exception>
 public IndexMetadata(TName tableName, string?name, bool isPrimaryKey, bool isUnique, bool isUniqueConstraint, IndexColumnMetadataCollection <TDbType> columns, long?indexSizeKB, long?rowCount, IndexType indexType) : base(tableName.ToString() !, name, isPrimaryKey, isUnique, isUniqueConstraint, columns?.GenericCollection !, indexSizeKB, rowCount, indexType)