C# Class PdfRpt.DataSources.SqlParametersParser

A class to parse defined parameters in sql statements automatically.
Mostra file Open project: VahidN/PdfReport Class Usage Examples

Public Methods

Method Description
ApplySafeParameters ( DbCommand cmd, string sqlWithAtSignParameters ) : void

Parsing defined parameters in sql statements and converting them to DbParameters automatically

Private Methods

Method Description
createParameters ( DbCommand cmd, string commandText ) : IEnumerable
removeDuplicates ( MatchCollection ms ) : IList

Method Details

ApplySafeParameters() public static method

Parsing defined parameters in sql statements and converting them to DbParameters automatically
public static ApplySafeParameters ( DbCommand cmd, string sqlWithAtSignParameters ) : void
cmd System.Data.Common.DbCommand DbCommand
sqlWithAtSignParameters string sql statement with parameters started with @
return void