Update items in the repository based on a sql Condition
Namespace: DotNetNuke.DataAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
void Update( string sqlCondition, params Object[] args ) |
Visual Basic |
---|
Sub Update ( sqlCondition As String, ParamArray args As Object() ) |
Parameters
- sqlCondition
- Type: System..::..String
The sql condition e.g. "SET ArticelName = @1 WHERE ArticleId = @0"
- args
- Type: array<System..::..Object>[]()[][]
A collection of arguments to be mapped to the tokens in the sqlCondition
Examples
Update("SET Age=@1, Name=@2 WHERE ID=@0", 1, 21, "scooby");