| IDatabaseAbstracterParse Method (String, String, Int32, DictionaryString, IFormatterFactory, DictionaryString, KeyValuePairSqlType, 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
SyntaxSqlStatement[] Parse(
string requests,
string prefix,
int first,
Dictionary<string, IFormatterFactory> formatters,
Dictionary<string, KeyValuePair<SqlType, IFormatterFactory>> transformers
)
Function Parse (
requests As String,
prefix As String,
first As Integer,
formatters As Dictionary(Of String, IFormatterFactory),
transformers As Dictionary(Of String, KeyValuePair(Of SqlType, IFormatterFactory))
) As SqlStatement()
array<SqlStatement^>^ Parse(
String^ requests,
String^ prefix,
int first,
Dictionary<String^, IFormatterFactory^>^ formatters,
Dictionary<String^, KeyValuePair<SqlType, IFormatterFactory^>>^ transformers
)
abstract Parse :
requests : string *
prefix : string *
first : int *
formatters : Dictionary<string, IFormatterFactory> *
transformers : Dictionary<string, KeyValuePair<SqlType, IFormatterFactory>> -> SqlStatement[]
Parameters
- requests
- 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 - transformers
- Type: System.Collections.GenericDictionaryString, KeyValuePairSqlType, IFormatterFactory
a list of named transformers
Return Value
Type:
SqlStatementa list of SqlStatement ready to be executed
See Also