C# Класс Rolcore.Data.DataTableExtensions

Extension methods for DataTable.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetColumnMapOrDefault ( this source, NameValueCollection columnMap = null ) : NameValueCollection

Generates a column map for the specified source DataTable, adding only unmapped columns.

GetColumnNames ( this table ) : string[]

Gets the column names of the table.

ToHtmlTable ( this table ) : string

Converts the given DataTable into the equivelant HTML table.

Приватные методы

Метод Описание
FillFromCsvFile ( this table, string folderPath, string fileName ) : void

Описание методов

GetColumnMapOrDefault() публичный статический Метод

Generates a column map for the specified source DataTable, adding only unmapped columns.
public static GetColumnMapOrDefault ( this source, NameValueCollection columnMap = null ) : NameValueCollection
source this Specifies the source containing the /// columns to be mapped.
columnMap System.Collections.Specialized.NameValueCollection Specifies any existing mappings.
Результат System.Collections.Specialized.NameValueCollection

GetColumnNames() публичный статический Метод

Gets the column names of the table.
public static GetColumnNames ( this table ) : string[]
table this Specifies the table to retrieve the column names from.
Результат string[]

ToHtmlTable() публичный статический Метод

Converts the given DataTable into the equivelant HTML table.
public static ToHtmlTable ( this table ) : string
table this Specifies the to convert to HTML.
Результат string