Class DataRowConversionExtensions
Inheritance
DataRowConversionExtensions
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
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 Parameters
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 Parameters
| Name |
Description |
| TKey |
|
| TValue |
|