Class NamedSet
- Namespace
- TimeCockpit.Data
- Assembly
- TimeCockpit.Data.dll
Represents a named collection of EntityObjects.
public class NamedSet : IEnumerable<EntityObject>, IEnumerable
- Inheritance
-
ObjectNamedSet
- 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
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
definitionNamedSetDefinitionThe definition that determines the NamedSet.
entityObjectsIEnumerable<EntityObject>The entity objects that represent the result of an executed NamedSet.
Returns
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
definitionNamedSetDefinitionThe definition that determines the NamedSet.
contextIDataContextThe DataContext upon which to fetch the NamedSet.
environmentEnvironmentThe environment.
Returns
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
contextDataContextThe DataContext upon which to refresh the NamedSet.
environmentEnvironmentThe 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.