Class DbParameterInfo
Represents a structured parameter for remote SQL execution via HTTP Agent.
Ensures type safety and prevents SQL injection.
Inheritance
DbParameterInfo
Assembly: Reportman.Reporting.dll
Syntax
public class DbParameterInfo
Constructors
View Source
DbParameterInfo()
Declaration
View Source
DbParameterInfo(string, object, int?)
Declaration
public DbParameterInfo(string name, object value, int? dbType = null)
Parameters
Properties
View Source
DbType
Optional hint for the provider (maps to System.Data.DbType integer).
Declaration
public int? DbType { get; set; }
Property Value
View Source
Name
Parameter name (e.g., "id" or "@id").
Declaration
public string Name { get; set; }
Property Value
View Source
Value
Parameter value. Passed as an object.
Declaration
public object Value { get; set; }
Property Value
Methods
View Source
FromDataParameter(IDataParameter)
Creates a DbParameterInfo from an IDataParameter.
Declaration
public static DbParameterInfo FromDataParameter(IDataParameter param)
Parameters
Returns
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