Show / Hide Table of Contents

    Class ColumnSchemaCollection

    List of columns for table TableSchema.

    Inheritance
    System.Object
    System.Collections.ObjectModel.Collection<ColumnSchema>
    System.Collections.ObjectModel.KeyedCollection<System.String, ColumnSchema>
    ColumnSchemaCollection
    Namespace: Kros.Data.Schema
    Assembly: Kros.Utils.dll
    Syntax
    public class ColumnSchemaCollection : KeyedCollection<string, ColumnSchema>, IList<ColumnSchema>, ICollection<ColumnSchema>, IList, ICollection, IReadOnlyList<ColumnSchema>, IReadOnlyCollection<ColumnSchema>, IEnumerable<ColumnSchema>, IEnumerable
    Remarks

    To the columns added to this list is automatically set their Table. The column can belong only to one table.

    Constructors

    ColumnSchemaCollection(TableSchema)

    Creates a new column list for table.

    Declaration
    public ColumnSchemaCollection(TableSchema table)
    Parameters
    Type Name Description
    TableSchema table

    Table to which column list belongs.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Value of table is null.

    Properties

    Table

    The table to which belongs this ColumnSchemaCollection.

    Declaration
    public TableSchema Table { get; }
    Property Value
    Type Description
    TableSchema

    Methods

    GetKeyForItem(ColumnSchema)

    Declaration
    protected override string GetKeyForItem(ColumnSchema item)
    Parameters
    Type Name Description
    ColumnSchema item
    Returns
    Type Description
    System.String
    Overrides
    System.Collections.ObjectModel.KeyedCollection<System.String, Kros.Data.Schema.ColumnSchema>.GetKeyForItem(Kros.Data.Schema.ColumnSchema)

    InsertItem(Int32, ColumnSchema)

    Declaration
    protected override void InsertItem(int index, ColumnSchema item)
    Parameters
    Type Name Description
    System.Int32 index
    ColumnSchema item
    Overrides
    System.Collections.ObjectModel.KeyedCollection<System.String, Kros.Data.Schema.ColumnSchema>.InsertItem(System.Int32, Kros.Data.Schema.ColumnSchema)

    RemoveItem(Int32)

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Overrides
    System.Collections.ObjectModel.KeyedCollection<System.String, Kros.Data.Schema.ColumnSchema>.RemoveItem(System.Int32)
    Back to top KROS a.s.