Class MetaDataCollection<TItem>

The parent class for meta data collection classes.

System.Object
  Stonefield.Collections.BaseKeyedCollection<TItem>
    Stonefield.Collections.BasePersistedCollection<TItem>
      Stonefield.Query.DataDictionary.MetaDataCollection<TItem>
public abstract class MetaDataCollection<TItem> : BasePersistedCollection<TItem>, IMetaDataCollection<TItem>

Remarks

It's abstract because it must be subclassed into specific classes, such as Fields and Tables.

new() must be specified as a constraint because the Deserialize method creates a new TItem.

Class Members

MemberDescription

Constructor

Constructor.

CollectionChanged

Add

public virtual void Add(TItem item);

CanRemoveItem

public virtual bool CanRemoveItem(TItem item);

CanSaveItem

public virtual bool CanSaveItem(TItem item);

Clear

public virtual void Clear();

Contains

public sealed bool Contains(TItem item);

CopyTo

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

CreateTable

public virtual void CreateTable(IDbConnection conn);

public virtual void CreateTable();

DeleteItem

public virtual bool DeleteItem(string ID);

public virtual bool DeleteItem(TItem item);

GetEnumerator

public virtual IEnumerator<TItem> GetEnumerator();

GetItem

public sealed TItem GetItem(string name);

public sealed TItem GetItem(int index);

GetItems

public TItem[] GetItems();

LoadCollection

public virtual void LoadCollection();

public virtual void LoadCollection(IDbConnection conn);

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

New

public virtual TItem New(string name);

public virtual TItem New();

Remove

public virtual bool Remove(TItem item);

SaveItem

public virtual bool SaveItem(TItem item);

public virtual void SaveItem(TItem item,
    IDbConnection conn)

SaveItemStudio

Called from Stonefield Query Studio to save an item.

public abstract TItem SaveItemStudio(object item);

Count

IsReadOnly

Item

Provider

Requirements

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