Show / Hide Table of Contents

Class DataRowConversionExtensions

Inheritance
object
DataRowConversionExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Data
Assembly: PayrollEngine.Core.dll
Syntax
public static class DataRowConversionExtensions

Methods

TransposeFrom(DataRow, DataRow, Func<DataColumn, string>, Func<object, object>, Func<DataColumn, Type>, Func<DataColumn, object>)

Declaration
public static void TransposeFrom(this DataRow target, DataRow source, Func<DataColumn, string> columnName = null, Func<object, object> itemValue = null, Func<DataColumn, Type> columnType = null, Func<DataColumn, object> defaultValue = null)
Parameters
Type Name Description
DataRow target
DataRow source
Func<DataColumn, string> columnName
Func<object, object> itemValue
Func<DataColumn, Type> columnType
Func<DataColumn, object> defaultValue

TransposeFrom<T>(DataRow, IEnumerable<T>, Func<T, string>, Func<T, object>, Func<T, Type>, Func<T, object>)

Declaration
public static void TransposeFrom<T>(this DataRow target, IEnumerable<T> items, Func<T, string> columnName, Func<T, object> itemValue, Func<T, Type> columnType = null, Func<T, object> defaultValue = null)
Parameters
Type Name Description
DataRow target
IEnumerable<T> items
Func<T, string> columnName
Func<T, object> itemValue
Func<T, Type> columnType
Func<T, object> defaultValue
Type Parameters
Name Description
T

TransposeFrom<TKey, TValue>(DataRow, IDictionary<TKey, TValue>, Func<TKey, string>, Func<TValue, object>, Func<TKey, Type>, Func<TKey, object>)

Declaration
public static void TransposeFrom<TKey, TValue>(this DataRow target, IDictionary<TKey, TValue> items, Func<TKey, string> columnName = null, Func<TValue, object> itemValue = null, Func<TKey, Type> columnType = null, Func<TKey, object> defaultValue = null)
Parameters
Type Name Description
DataRow target
IDictionary<TKey, TValue> items
Func<TKey, string> columnName
Func<TValue, object> itemValue
Func<TKey, Type> columnType
Func<TKey, object> defaultValue
Type Parameters
Name Description
TKey
TValue
☀
☾
Back to top Generated by DocFX