Ejemplo n.º 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));
        }
Ejemplo n.º 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));
 }