Show / Hide Table of Contents

Class ColumnValueBag

Stores column and data value as dictionary of key-value pairs.

Inheritance
System.Object
ColumnValueBag
Implements
System.Collections.Generic.IReadOnlyDictionary<Column, System.Object>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<Column, System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Column, System.Object>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public sealed class ColumnValueBag : IReadOnlyDictionary<Column, object>, IReadOnlyCollection<KeyValuePair<Column, object>>, IEnumerable<KeyValuePair<Column, object>>, IEnumerable

Properties

Name Description
Count

Gets the count of this dictionary.

Item[Column]

Gets or sets the data value for specified column.

Keys

Gets the keys in this dictionary.

Values

Gets the values in this dictionary.

Methods

Name Description
AutoSelect(CandidateKey, DataRow)

Automatically select all CandidateKey columns and their data values for specified DataRow.

AutoSelect(Projection, DataRow, Boolean)

Automatically select all columns of Projection for specified DataRow.

Clear()

Clears all items in this dictionary.

Clone()

Clones this object.

ContainsKey(CandidateKey)

Determines whether all columns of specified CandidateKey are contained in this dictionary.

ContainsKey(Column)

Determines whether specified column is contained in this dictionary.

GetEnumerator()

Gets the enumerator of this dictionary.

GetValue<T>(Column<T>)

Gets the data value for specified column.

Remove(Column)

Removes specified column from this dictionary.

ResetValues()

Resets all data values to default value of associated column.

SetValue(Column, DataRow)

Sets the data value from specified DataRow for the specified column key.

SetValue<T>(Column<T>, T)

Sets the data value for the specified column key.

TryGetValue(Column, out Object)

Gets the value that is associated with the specified column key.

Explicit Interface Implementations

Name Description
IEnumerable.GetEnumerator()

Extension Methods

ColumnExtensions.WithDefaultValue<TColumn, TValue>(TColumn, TValue, String, String)
ColumnExtensions.WithValueComparer<TColumn, TValue>(TColumn, IComparer<TValue>)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest