Table of Contents

Class NamedSet

Namespace
TimeCockpit.Data
Assembly
TimeCockpit.Data.dll

Represents a named collection of EntityObjects.

public class NamedSet : IEnumerable<EntityObject>, IEnumerable
Inheritance
Object
NamedSet
Implements
IEnumerable<EntityObject>
IEnumerable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Properties

Definition

Gets or sets the definition of the NamedSet.

public NamedSetDefinition Definition { get; set; }

Property Value

NamedSetDefinition

Name

Gets the name of the NamedSet.

public string Name { get; }

Property Value

String

Methods

Create(NamedSetDefinition, IEnumerable<EntityObject>)

Creates an instance of a NamedSet basing on the specified definition

public static NamedSet Create(NamedSetDefinition definition, IEnumerable<EntityObject> entityObjects)

Parameters

definition NamedSetDefinition

The definition that determines the NamedSet.

entityObjects IEnumerable<EntityObject>

The entity objects that represent the result of an executed NamedSet.

Returns

NamedSet

Returns a new instance of NamedSet

Create(NamedSetDefinition, IDataContext, Environment)

Creates an instance of a NamedSet basing on the specified definition

public static NamedSet Create(NamedSetDefinition definition, IDataContext context, Environment environment)

Parameters

definition NamedSetDefinition

The definition that determines the NamedSet.

context IDataContext

The DataContext upon which to fetch the NamedSet.

environment Environment

The environment.

Returns

NamedSet

An instance of NamedSet

GetEnumerator()

Gets the enumerator.

public IEnumerator<EntityObject> GetEnumerator()

Returns

IEnumerator<EntityObject>

An System.Collections.IEnumerator[EntityObject] object that can be used to iterate through the collection.

Refresh(DataContext, Environment)

Refreshes the current instance of the NamedSet according its NamedSetDefinition.

public void Refresh(DataContext context, Environment environment)

Parameters

context DataContext

The DataContext upon which to refresh the NamedSet.

environment Environment

The environment.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerator IEnumerable.GetEnumerator()

Returns

IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.