コード例 #1
0
        /// <summary>
        /// Saves a point in a transaction using a random name.
        /// </summary>
        /// <returns>
        /// The random savepoint name that was used.
        /// </returns>
        public static string CreateSavepoint(this SqliteTransaction transaction)
        {
            var savepoint = "SAVEPOINT_" + Random.Next() + "_" + DateTime.UtcNow.Ticks;

            transaction.CreateSavepoint(savepoint);

            return(savepoint);
        }