Пример #1
0
        /// <summary>
        /// Refreshes the data command while remaining the command's execution context (db connection, transaction, etc).
        /// </summary>
        /// <param name="command">The CMD.</param>
        /// <param name="name">The name.</param>
        public static void RefreshDataCommand(DataCommand command, string name)
        {
            DataCommand cmd = GetDataCommand(name);

            command.CopyCommand(cmd);
        }
Пример #2
0
 /// <summary>
 /// Refreshes the data command while remaining the command's execution context (db connection, transaction, etc).
 /// </summary>
 /// <param name="command">The command.</param>
 /// <param name="fromCommand">From command.</param>
 public static void RefreshDataCommand(DataCommand command, DataCommand fromCommand)
 {
     command.CopyCommand(fromCommand);
 }
Пример #3
0
 /// <summary>
 /// Copies the command from command while keeping the dbTransaction context.
 /// </summary>
 /// <param name="command">The command.</param>
 internal void CopyCommand(DataCommand command)
 {
     operationCommand = CloneCommand(command.operationCommand);
 }