using AnalyticsDAL.DTO.BIView;
using GB5Shared.DTO.Framework.Login;
namespace AnalyticsDAL.CustomCode.BIView
{
public interface IBIViewDAL
{
/// Unscoped by TenantId (PK lookup only) — see BIViewQB.GET_BIVIEW_BY_ID for
/// why: the caller must be able to see a shared (TenantId = -1) view before comparing
/// it against the caller's tenant in code.
Task GetById(int biViewId, LoginDTO login, CancellationToken ct);
Task> GetSelectListByCatalogId(int biCatalogId, LoginDTO login, CancellationToken ct);
Task Insert(BIViewDTO dto, LoginDTO login, CancellationToken ct);
Task Update(BIViewDTO dto, LoginDTO login, CancellationToken ct);
Task Delete(int biViewId, LoginDTO login, CancellationToken ct);
}
}