Search Results for

    Show / Hide Table of Contents

    Class DataUtilities

    DataTable and DataSet utilities

    Inheritance
    object
    DataUtilities
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public static class DataUtilities

    Methods

    Copy(DataTable)

    Copy a DataTable, the standard Copy() command does not work for byte[] columns

    Declaration
    public static DataTable Copy(DataTable ntable)
    Parameters
    Type Name Description
    DataTable ntable
    Returns
    Type Description
    DataTable

    DividirLista<T>(List<T>, int)

    Declaration
    public static List<List<T>> DividirLista<T>(List<T> lista, int tamañoMaximo)
    Parameters
    Type Name Description
    List<T> lista
    int tamañoMaximo
    Returns
    Type Description
    List<List<T>>
    Type Parameters
    Name Description
    T

    FillAsync(DbCommand, string, int, int)

    Lee de forma asincrona desde un dbcommand

    Declaration
    public static Task<DataTable> FillAsync(DbCommand ncommand, string tableName, int from, int to)
    Parameters
    Type Name Description
    DbCommand ncommand
    string tableName
    int from
    int to
    Returns
    Type Description
    Task<DataTable>

    GetCreationSql(DataTable, string)

    Declaration
    public static string GetCreationSql(DataTable ntable, string primkey)
    Parameters
    Type Name Description
    DataTable ntable
    string primkey
    Returns
    Type Description
    string

    GroupBy(List<DataTable>, string, string)

    Declaration
    public static DataTable GroupBy(List<DataTable> sources, string groupCols, string sumCols)
    Parameters
    Type Name Description
    List<DataTable> sources
    string groupCols
    string sumCols
    Returns
    Type Description
    DataTable

    IndexOfDataRow(DataView, DataRow)

    Declaration
    public static int IndexOfDataRow(this DataView dv, DataRow xrow)
    Parameters
    Type Name Description
    DataView dv
    DataRow xrow
    Returns
    Type Description
    int

    TypeToDbType(Type)

    Declaration
    public static DbType TypeToDbType(Type ntype)
    Parameters
    Type Name Description
    Type ntype
    Returns
    Type Description
    DbType
    In this article
    Back to top Generated by DocFX