46 lines
1.8 KiB
C#
46 lines
1.8 KiB
C#
namespace EgwCoreLib.Lux.Data.Repository.Items
|
|
{
|
|
public interface ISellingItemRepository : IBaseRepository
|
|
{
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Inserisce un nuovo record SellingItem nel database.
|
|
/// </summary>
|
|
/// <param name="entity">Record da inserire</param>
|
|
Task<bool> AddAsync(SellingItemModel entity);
|
|
|
|
/// <summary>
|
|
/// Elimina un record SellingItem dal database.
|
|
/// </summary>
|
|
/// <param name="entity">Record da eliminare</param>
|
|
Task<bool> DeleteAsync(SellingItemModel entity);
|
|
|
|
/// <summary>
|
|
/// Recupera un record SellingItem specifico per ID.
|
|
/// </summary>
|
|
/// <param name="recId">ID dell'item di vendita da recuperare</param>
|
|
Task<SellingItemModel?> GetByIdAsync(int recId);
|
|
|
|
/// <summary>
|
|
/// Recupera tutti gli item di vendita per un ambiente specifico.
|
|
/// </summary>
|
|
/// <param name="envir">Ambiente di esecuzione</param>
|
|
Task<List<SellingItemModel>> GetByEnvirAsync(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS envir);
|
|
|
|
/// <summary>
|
|
/// Recupera gli item di vendita filtrati per ambiente e tipo sorgente.
|
|
/// </summary>
|
|
/// <param name="envir">Ambiente di esecuzione (NULL = tutti)</param>
|
|
/// <param name="sourceType">Tipo di sorgente (ND = tutti)</param>
|
|
Task<List<SellingItemModel>> GetFiltAsync(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType);
|
|
|
|
/// <summary>
|
|
/// Aggiorna un record SellingItem esistente nel database.
|
|
/// </summary>
|
|
/// <param name="entity">Record aggiornato</param>
|
|
Task<bool> UpdateAsync(SellingItemModel entity);
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |