Example #1
0
 void Database.UpdateLineMarker(int value)
 {
     ExecuteDbMethod(
         delegate(DBConnection cn) {
         var command = new InlineUpdate("global_numbers");
         command.AddColumnModification(new InlineDbCommandColumnValue("v", new DbParameterValue(value)));
         command.AddCondition(new EqualityCondition(new InlineDbCommandColumnValue("k", new DbParameterValue("LineMarker"))));
         command.Execute(cn);
     });
 }
Example #2
0
 void IDatabase.UpdateLineMarker(int value)
 {
     ExecuteDbMethod(
         cn => {
         var command = new InlineUpdate("global_ints", null);
         command.AddColumnModification(new InlineDbCommandColumnValue("ParameterValue", new DbParameterValue(value)));
         command.AddCondition(new EqualityCondition(new InlineDbCommandColumnValue("ParameterName", new DbParameterValue("LineMarker"))));
         command.Execute(cn);
     });
 }