/// <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); }
/// <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); }
/// <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); }