BotSharp/src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

19 lines
572 B
C#
Raw Normal View History

2023-08-26 04:41:01 +00:00
using BotSharp.Abstraction.Repositories.Records;
using System.Linq;
namespace BotSharp.Abstraction.Repositories;
2023-08-10 04:53:22 +00:00
public interface IBotSharpRepository
{
IQueryable<UserRecord> User { get; }
IQueryable<AgentRecord> Agent { get; }
IQueryable<UserAgentRecord> UserAgent { get; }
IQueryable<ConversationRecord> Conversation { get; }
int Transaction<TTableInterface>(Action action);
void Add<TTableInterface>(object entity);
2023-09-02 05:10:46 +00:00
UserRecord GetUserByEmail(string email);
void CreateUser(UserRecord user);
void UpdateAgent(AgentRecord agent);
2023-08-10 04:53:22 +00:00
}