Here are the examples of the csharp api class BookStore.Util.With.Proc.Invoke(System.Data.SqlClient.SqlCommand) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: rhino-tools
Source File: With.cs
Source File: With.cs
public static void Transaction(IsolationLevel isolation, Proc exec) { StartTransaction(isolation); try { using (SqlCommand command = activeConnection.CreateCommand()) { command.Transaction = activeTransaction; exec(command); } CommitTransaction(); } catch { RollbackTransaction(); throw; } finally { DisposeTransaction(); } }
0
2. Example
Project: rhino-tools
Source File: With.ForWeb.cs
Source File: With.ForWeb.cs
public static void Transaction(IsolationLevel isolation, Proc exec) { StartTransaction(isolation); try { using (SqlCommand command = ActiveConnection.CreateCommand()) { command.Transaction = ActiveTransaction; exec(command); } CommitTransaction(); } catch { RollbackTransaction(); throw; } finally { DisposeTransaction(); } }