public static void Deactivate(TestResult matrix) { if(null!=matrix.TestProvider) { matrix.TestProviderId = matrix.TestProvider.Id(); } using(var c = myapp.getConnection("mas")) { c.WellOpen(); c.ExecuteNonQuery("exec mas.audit_deactivate @system=@system, @application=@application, @type=@type, @level=@level",matrix); } }
public static void Define(TestResult matrix) { if (null != matrix.TestProvider) { matrix.TestProviderId = matrix.TestProvider.Id(); } using (var c = myapp.getConnection("mas")) { c.WellOpen(); c.ExecuteNonQuery("insert mas.testresultupdate (code, name, version, type, level, message, xmldata, canbeignored, ignored, fixed, active, test, system, application, providerid, var1, var2, var3, var4, link, autofix) "+ "values (@code, @name, getdate(), @type, @level, @message, @xmldata, @canbeignored, @ignored, @fixed, @active, @test, @system, @application, @testproviderid, @var1, @var2, @var3, @var4, @link, @autofix)", matrix); } }