public static ITransaction BeginTransaction(SQLCEDatabase database, string connectionString, IsolationLevel level) { SqlCeConnection connection = new SqlCeConnection(connectionString); connection.Open(); return(new SQLCETransaction(database, connection, connection.BeginTransaction(level))); }
public static ITransaction CreateTransaction(SQLCEDatabase database, string connectionString) { SqlCeConnection connection = new SqlCeConnection(connectionString); connection.Open(); return(new SQLCETransaction(database, connection, null)); }
public static ITransaction BeginTransaction(SQLCEDatabase database, string connectionString, IsolationLevel level) { SqlCeConnection connection = new SqlCeConnection(connectionString); connection.Open(); return new SQLCETransaction(database, connection, connection.BeginTransaction(level)); }