Class DataGroupCollection

A collection of datagroups in the data dictionary.

System.Object
  Stonefield.Collections.BaseKeyedCollection<IDataGroup>
    Stonefield.Collections.BasePersistedCollection<IDataGroup>
      Stonefield.Query.DataDictionary.MetaDataCollection<IDataGroup>
        Stonefield.Query.DataDictionary.DataGroupCollection
public class DataGroupCollection : MetaDataCollection<IDataGroup>, IEnumerable<IDataGroup>,
   IMetaDataCollection<IDataGroup>

Remarks

This must be marked as serializable so it can be used in dynamic scripts.

Class Members

MemberDescription

Constructor

Constructor.

CollectionChanged

Add

Adds an item to the collection.

public virtual void Add(IDataGroup item);

Any

Determines whether any items satisfy the specified condition.

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

CanRemoveItem

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

public virtual bool CanRemoveItem(IDataGroup item);

CanSaveItem

Determines if the specified item can be saved.

public virtual bool CanSaveItem(IDataGroup item);

Clear

Clears the collection.

public virtual void Clear();

Contains

Returns true if the collection contains the specified item.

public sealed bool Contains(IDataGroup item);

CopyTo

public virtual void CopyTo(IDataGroup[] 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(IDataGroup item);

GetEnumerator

Gets a custom enumerator for the collection.

public sealed IEnumerator<IDataGroup> GetEnumerator();

GetItem

Returns the item with the specified name or ID.

public sealed IDataGroup GetItem(string name);

public sealed IDataGroup GetItem(int index);

GetItems

Returns an array with all items in the collection.

public IDataGroup[] GetItems();

LoadCollection

Turn off the DisplayAllDataGroup setting is it's on and there are no data groups.

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

public virtual void LoadCollection();

public virtual void LoadCollection(IDbConnection conn);

New

Creates an item and adds it to the collection.

public virtual IDataGroup New(string name);

public virtual IDataGroup New();

Remove

Removes an item from the collection.

public virtual bool Remove(IDataGroup item);

SaveItem

Saves the specified item to the table.

public virtual bool SaveItem(IDataGroup item);

SaveItemStudio

Saves a Stonefield Query Studio object.

public virtual IDataGroup SaveItemStudio(object item);

Where

Returns a subset of the collection based on a condition.

public IEnumerable<IDataGroup> Where(Func<IDataGroup,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.

Requirements

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

© Stonefield Software Inc., 2019 • Updated: 05/28/18
Comment or report problem with topic