C# Class Nvelope.DataTableExtensions

ファイルを表示 Open project: TrinityWestern/Nvelope

Public Methods

Method Description
Columnnames ( this dt ) : HashSet
Columns ( this dt ) : IEnumerable
Print ( this dr ) : string
Rows ( this dt ) : IEnumerable
Table ( this ds, string tablename ) : DataTable

Gets a table, if it exists in the dataset. If it doesn't exist, return null

Tablenames ( this ds ) : HashSet
Tables ( this ds ) : IEnumerable
ToDictionaries ( this dt, IEnumerable columnsToInclude = null ) : object>>.IEnumerable

Converts a Datatable to a list or Dictionaries

ToDictionary ( this dr ) : object>.Dictionary
ToDictionary ( this dr, IEnumerable columnsToInclude = null ) : object>.Dictionary

Converts a DataRow to a dictionary

ToList ( this dc ) : IEnumerable
ToList ( this dc ) : IEnumerable
ToList ( this dt ) : IEnumerable
Value ( this dt, CellLoc loc ) : string

Method Details

Columnnames() public static method

public static Columnnames ( this dt ) : HashSet
dt this
return HashSet

Columns() public static method

public static Columns ( this dt ) : IEnumerable
dt this
return IEnumerable

Print() public static method

public static Print ( this dr ) : string
dr this
return string

Rows() public static method

public static Rows ( this dt ) : IEnumerable
dt this
return IEnumerable

Table() public static method

Gets a table, if it exists in the dataset. If it doesn't exist, return null
public static Table ( this ds, string tablename ) : DataTable
ds this
tablename string
return System.Data.DataTable

Tablenames() public static method

public static Tablenames ( this ds ) : HashSet
ds this
return HashSet

Tables() public static method

public static Tables ( this ds ) : IEnumerable
ds this
return IEnumerable

ToDictionaries() public static method

Converts a Datatable to a list or Dictionaries
public static ToDictionaries ( this dt, IEnumerable columnsToInclude = null ) : object>>.IEnumerable
dt this
columnsToInclude IEnumerable
return object>>.IEnumerable

ToDictionary() public static method

public static ToDictionary ( this dr ) : object>.Dictionary
dr this
return object>.Dictionary

ToDictionary() public static method

Converts a DataRow to a dictionary
public static ToDictionary ( this dr, IEnumerable columnsToInclude = null ) : object>.Dictionary
dr this
columnsToInclude IEnumerable
return object>.Dictionary

ToList() public static method

public static ToList ( this dc ) : IEnumerable
dc this
return IEnumerable

ToList() public static method

public static ToList ( this dc ) : IEnumerable
dc this
return IEnumerable

ToList() public static method

public static ToList ( this dt ) : IEnumerable
dt this
return IEnumerable

Value() public static method

public static Value ( this dt, CellLoc loc ) : string
dt this
loc CellLoc
return string