Class EntitySchemaQueryColumnCollection
Collection of columns of the entity schema query.
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySchemaQueryColumnCollection : UniqueNameMetaItemCollection<EntitySchemaQueryColumn>, IList<EntitySchemaQueryColumn>, ICollection<EntitySchemaQueryColumn>, IList, ICollection, IReadOnlyList<EntitySchemaQueryColumn>, IReadOnlyCollection<EntitySchemaQueryColumn>, IEnumerable<EntitySchemaQueryColumn>, IEnumerable, IMetaDataSerializable, ITempalteSerializable, ICloneable
Constructors
EntitySchemaQueryColumnCollection(EntitySchemaQuery)
Initializes the EntitySchemaQueryColumnCollection instance for the specified entity schema query.
Declaration
public EntitySchemaQueryColumnCollection(EntitySchemaQuery parentQuery)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | Query against the entity schema. |
EntitySchemaQueryColumnCollection(EntitySchemaQueryColumnCollection)
Initializes the EntitySchemaQueryColumnCollection instance that is a clone of the passed-in collection of columns of the entity schema query.
Declaration
public EntitySchemaQueryColumnCollection(EntitySchemaQueryColumnCollection source)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQueryColumnCollection | source | Collection of columns of the entity schema query, whose clone is being created. |
Properties
ParentQuery
Query against the schema of the entity that contains the collection of columns.
Declaration
public EntitySchemaQuery ParentQuery { get; set; }
Property Value
Type | Description |
---|---|
EntitySchemaQuery |
Methods
ClearItems()
Declaration
protected override void ClearItems()
Overrides
Clone()
Gets the System.Object instance that is a clone of the current collection of columns of the entity schema query.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | The System.Object instance that is a clone of the current collection of columns of the entity schema query. |
ExistsByPath(String)
Determines whether the current collection contains the column with the specified path.
Declaration
public bool ExistsByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to column. |
Returns
Type | Description |
---|---|
System.Boolean |
|
FindSchemaColumnByName(String)
In the collection, searches for the schema column with the specified name. If no such schema column is found, null
is returned.
Declaration
public EntitySchemaColumn FindSchemaColumnByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the schema column to get. |
Returns
Type | Description |
---|---|
EntitySchemaColumn | The EntitySchemaColumn instance with the |
GetSelectingExpressions()
For the current collection of columns, gets the collection of column expressions that will be used for building the resulting SQL query.
Declaration
public EntitySchemaQueryExpressionCollection GetSelectingExpressions()
Returns
Type | Description |
---|---|
EntitySchemaQueryExpressionCollection | Collection of column expressions that will be used for building the resulting SQL query. |
GetSelectingValueExpressions()
Gets a collection of columns from the current collection. The stored values of collection are selected in the query to the object schema .
Declaration
public EntitySchemaQueryExpressionCollection GetSelectingValueExpressions()
Returns
Type | Description |
---|---|
EntitySchemaQueryExpressionCollection | A collection of columns whose stored values are selected in the query to the object schema. |
GetUniqueName(String)
By the specified name, generates the column name that is unique for the current collection.
Declaration
public string GetUniqueName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the column for which to generate the unique name. |
Returns
Type | Description |
---|---|
System.String | Name for |
HasAggregationSelectingColumn()
Indicates whether the collection contains a column that is used for building a query and to which the aggregate function is applied.
Declaration
public bool HasAggregationSelectingColumn()
Returns
Type | Description |
---|---|
System.Boolean |
|
InsertItem(Int32, EntitySchemaQueryColumn)
Declaration
protected override void InsertItem(int index, EntitySchemaQueryColumn item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
EntitySchemaQueryColumn | item |
Overrides
RemoveByName(String)
Removes the column with the specified name from the collection.
Declaration
public void RemoveByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the column being removed. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If the empty value or |
ItemNotFoundException | If there is no column with the |
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Overrides
SetItem(Int32, EntitySchemaQueryColumn)
Declaration
protected override void SetItem(int index, EntitySchemaQueryColumn item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
EntitySchemaQueryColumn | item |