| AbstractDatabaseAbstracterParse Method (String, String, Int32, DictionaryString, IFormatterFactory) |
Parses a list of SqlStatement from a semicolon separated string, a prefix and a starting number for the numeric parameters (
see the format description) and a custom list of formatters.
It uses the default transformers.
Namespace: Activsoft.Engine.DbAssembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntaxpublic SqlStatement[] Parse(
string req,
string prefix,
int first,
Dictionary<string, IFormatterFactory> formatters
)
Public Function Parse (
req As String,
prefix As String,
first As Integer,
formatters As Dictionary(Of String, IFormatterFactory)
) As SqlStatement()
public:
virtual array<SqlStatement^>^ Parse(
String^ req,
String^ prefix,
int first,
Dictionary<String^, IFormatterFactory^>^ formatters
) sealed
abstract Parse :
req : string *
prefix : string *
first : int *
formatters : Dictionary<string, IFormatterFactory> -> SqlStatement[]
override Parse :
req : string *
prefix : string *
first : int *
formatters : Dictionary<string, IFormatterFactory> -> SqlStatement[] Parameters
- req
- Type: SystemString
semicolon separated SQL request list - prefix
- Type: SystemString
prefix to use for the numeric parameters - first
- Type: SystemInt32
first number for the numeric parameters; [prefix][first] will be used for %2, [prefix][first+1] for %3, etc. - formatters
- Type: System.Collections.GenericDictionaryString, IFormatterFactory
a list of named formatters
Return Value
Type:
SqlStatementa list of SqlStatement ready to be executed
Implements
IDatabaseAbstracterParse(String, String, Int32, DictionaryString, IFormatterFactory)
See Also