Class TableCollection

A collection of tables in the data dictionary.

System.Object
  Stonefield.Collections.BaseKeyedCollection<ITable>
    Stonefield.Collections.BasePersistedCollection<ITable>
      Stonefield.Query.DataDictionary.MetaDataCollection<ITable>
        Stonefield.Query.DataDictionary.TableCollection
public class TableCollection : MetaDataCollection<ITable>, IMetaDataCollection<ITable>,
   ITableCollection

Class Members

MemberDescription

Constructor

Constructor.

CollectionChanged

Add

Adds an item to the collection.

public virtual void Add(ITable item);

Any

Determines whether any items satisfy the specified condition.

public bool Any(Func<ITable,Boolean> predicate);

public sealed bool Any(Func<ITable,Boolean> predicate)

CanRemoveItem

Determines if the item can be removed from the collection and the table.

public virtual bool CanRemoveItem(ITable item);

CanSaveItem

Determines if the specified item can be saved.

public virtual bool CanSaveItem(ITable item);

Clear

Clears the collection.

public virtual void Clear();

Contains

Returns true if the collection contains the specified item.

public sealed bool Contains(ITable item);

CopyTo

Copies the set of tables to an array.

public virtual void CopyTo(ITable[] array,
    int arrayIndex);

CreateTable

Creates the table if it doesn't exist using the specified open connection.

public virtual void CreateTable(IDbConnection conn);

public virtual void CreateTable();

DeleteItem

Removes the specified item from the table and the collection.

public virtual bool DeleteItem(string ID);

public virtual bool DeleteItem(ITable item);

GetEnumerator

Gets a custom enumerator for the collection.

public sealed IEnumerator<ITable> GetEnumerator();

GetItem

Returns the item with the specified name or ID.

public sealed ITable GetItem(string name);

public sealed ITable GetItem(int index);

GetItems

Returns an array of tables matching the specified conditions.

public sealed ITable[] GetItems(string database,
    bool reportableOnly,
    string filter,
    string updated);

public ITable[] GetItems();

GetSubTables

Returns an array of subtables of the specified table.

public sealed ITable[] GetSubTables(string ID);

GetTablesInDataGroup

Returns a set of tables in the specified data group.

public sealed List<ITable> GetTablesInDataGroup(IDataGroup dataGroup,
    bool reportableOnly,
    bool activeDatabaseOnly);

public sealed ITable[] GetTablesInDataGroup(string dataGroupID,
    bool reportableOnly,
    bool activeDatabaseOnly);

GetTablesInRole

Returns a set of tables in the specified role.

public sealed ITable[] GetTablesInRole(string roleID,
    bool reportableOnly,
    bool activeDatabaseOnly);

LoadCollection

Loads the collection from the table.

public virtual void LoadCollection();

public virtual void LoadCollection(IDbConnection conn);

public virtual void LoadCollection(IDbConnection conn,
    bool checkForDuplicates);

New

Creates an item and adds it to the collection.

public virtual ITable New(string name);

public virtual ITable New();

Remove

Removes an item from the collection.

public virtual bool Remove(ITable item);

SaveItem

Saves the specified item to the table.

public virtual bool SaveItem(ITable item);

SaveItemStudio

Saves a Stonefield Query Studio object.

public virtual ITable SaveItemStudio(object item);

Where

Returns a subset of the collection based on a condition.

public IEnumerable<ITable> Where(Func<ITable,Boolean> predicate);

public sealed IEnumerable<ITable> Where(Func<ITable,Boolean> predicate)

Count

The number of items in the collection.

IsReadOnly

Indicates whether the collection is read-only.

Item

Provider

The provider that connects to the database.

UsingRoles

True if any of the tables use role-based security.

Requirements

Namespace: Stonefield.Query.DataDictionary
Assembly: datadictionary.dll