Search Results for

    Show / Hide Table of Contents

    Class DbParameterInfo

    Represents a structured parameter for remote SQL execution via HTTP Agent. Ensures type safety and prevents SQL injection.

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

    Constructors

    View Source

    DbParameterInfo()

    Declaration
    public DbParameterInfo()
    View Source

    DbParameterInfo(string, object, int?)

    Declaration
    public DbParameterInfo(string name, object value, int? dbType = null)
    Parameters
    Type Name Description
    string name
    object value
    int? dbType

    Properties

    View Source

    DbType

    Optional hint for the provider (maps to System.Data.DbType integer).

    Declaration
    public int? DbType { get; set; }
    Property Value
    Type Description
    int?
    View Source

    Name

    Parameter name (e.g., "id" or "@id").

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    Value

    Parameter value. Passed as an object.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    object

    Methods

    View Source

    FromDataParameter(IDataParameter)

    Creates a DbParameterInfo from an IDataParameter.

    Declaration
    public static DbParameterInfo FromDataParameter(IDataParameter param)
    Parameters
    Type Name Description
    IDataParameter param
    Returns
    Type Description
    DbParameterInfo
    View Source

    FromParam(Param)

    Creates a DbParameterInfo from a report Param.

    Declaration
    public static DbParameterInfo FromParam(Param param)
    Parameters
    Type Name Description
    Param param
    Returns
    Type Description
    DbParameterInfo
    • View Source
    In this article
    Back to top Generated by DocFX