Class FieldCollection

A collection of fields in the data dictionary.

System.Object
  Stonefield.Collections.BaseKeyedCollection<IField>
    Stonefield.Collections.BasePersistedCollection<IField>
      Stonefield.Query.DataDictionary.MetaDataCollection<IField>
        Stonefield.Query.DataDictionary.FieldCollection
public class FieldCollection : MetaDataCollection<IField>, IMetaDataCollection<IField>,
   IFieldCollection

Class Members

MemberDescription

Constructor

Constructor.

CollectionChanged

Add

Adds an item to the collection.

public virtual void Add(IField item);

Any

Determines whether any items satisfy the specified condition.

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

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

CanRemoveItem

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

public virtual bool CanRemoveItem(IField item);

CanSaveItem

Determines if the specified item can be saved.

public virtual bool CanSaveItem(IField item);

Clear

Clears the collection.

public virtual void Clear();

Contains

Returns true if the collection contains the specified item.

public sealed bool Contains(IField item);

CopyTo

Copies the set of fields to an array.

public virtual void CopyTo(IField[] 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

Deletes the specified item in the table.

public virtual bool DeleteItem(IField item);

public virtual bool DeleteItem(string ID);

GetAllFieldsForTable

Find all fields in the specified table.

public sealed IList<IField> GetAllFieldsForTable(ITable table);

GetEnumerator

Gets a custom enumerator for the collection.

public sealed IEnumerator<IField> GetEnumerator();

GetFieldsForTable

Find all reportable fields in the specified table.

public sealed ObservableCollection<IField> GetFieldsForTable(ITable table);

GetItem

Returns the item with the specified name or ID.

public sealed IField GetItem(string name);

public sealed IField GetItem(int index);

GetItems

Returns an array of fields matching the specified conditions.

public sealed IField[] GetItems(string table,
    bool reportableOnly,
    string filter,
    string updated);

public IField[] GetItems();

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 IField New(string name);

public virtual IField New();

Remove

Removes an item from the collection.

public virtual bool Remove(IField item);

SaveItem

Saves the specified item to the table.

public virtual bool SaveItem(IField item);

SaveItemStudio

Saves a Stonefield Query Studio object.

public virtual IField SaveItemStudio(object item);

Where

Returns a subset of the collection based on a condition.

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

public sealed IEnumerable<IField> Where(Func<IField,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 fields use role-based security.

Requirements

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