예제 #1
0
        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));
        }
예제 #3
0
 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));
 }