Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

TempSqlDataStorage.cs

using LinqToDB;

namespace Nop.Data;

/// <summary>
/// Represents temporary storage
/// </summary>
/// <typeparam name="T">Storage record mapping class</typeparam>
public partial class TempSqlDataStorage<T> : TempTable<T>, ITempDataStorage<T> where T : class
{
    #region Ctor

    public TempSqlDataStorage(string storageName, IQueryable<T> query, IDataContext dataConnection)
        : base(dataConnection, storageName, query, tableOptions: TableOptions.NotSet | TableOptions.DropIfExists)
    {
        dataConnection.CloseAfterUse = true;
    }

    #endregion
}