Show / Hide Table of Contents

Class DataTableRowExtensions

Inheritance
object
DataTableRowExtensions
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 DataTableRowExtensions

Methods

AsSingleRow(DataTable)

Declaration
public static DataRow AsSingleRow(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
DataRow

DeleteRows(DataTable, string)

Declaration
public static int DeleteRows(this DataTable table, string filterExpression)
Parameters
Type Name Description
DataTable table
string filterExpression
Returns
Type Description
int

HasRows(DataTable)

Declaration
public static bool HasRows(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
bool

IsSingleRow(DataTable)

Declaration
public static bool IsSingleRow(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
bool

Rows(DataTable)

Declaration
public static EnumerableRowCollection Rows(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
EnumerableRowCollection

SelectRows(DataTable, string)

Declaration
public static IEnumerable<DataRow> SelectRows(this DataTable table, string filterExpression)
Parameters
Type Name Description
DataTable table
string filterExpression
Returns
Type Description
IEnumerable<DataRow>

SingleRow(DataTable)

Declaration
public static DataRow SingleRow(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
DataRow

SingleRowId(DataTable)

Declaration
public static int SingleRowId(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
int

SingleRowIdentifier(DataTable)

Declaration
public static string SingleRowIdentifier(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
string

SingleRowName(DataTable)

Declaration
public static string SingleRowName(this DataTable table)
Parameters
Type Name Description
DataTable table
Returns
Type Description
string

SingleRowValue<T>(DataTable, string, T)

Declaration
public static T SingleRowValue<T>(this DataTable table, string column, T defaultValue = default)
Parameters
Type Name Description
DataTable table
string column
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T
☀
☾
Back to top Generated by DocFX