BookStore.Util.With.Func.Invoke(System.Data.SqlClient.SqlCommand)

Here are the examples of the csharp api class BookStore.Util.With.Func.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 7

1. Example

Project: rhino-tools
Source File: With.cs
public static T Transaction<T>(Func<T> exec)
        {
            T result = default(T);
            Transaction(delegate(SqlCommand command)
            {
                result = exec(command);
            });
            return result;
        }

2. Example

Project: rhino-tools
Source File: With.ForWeb.cs
public static T Transaction<T>(Func<T> exec)
        {
            T result = default(T);
            Transaction(delegate(SqlCommand command)
            {
                result = exec(command);
            });
            return result;
        }