last works on Implementing XBotUser Entity and Repository Implementation based on xDataService ...

This commit is contained in:
2026-11-11 15:47:44 +03:30
parent 609402b04c
commit 1e2eb030e8
23 changed files with 726 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
using xPushService.Base;
using xBotService.Models.Entities;
using Microsoft.Extensions.Logging;
using xBotService.Interfaces.Entities;
namespace xBotService.Providers.Entities
{
public class XBotUserEntityHub : XBaseEntityHub<XBotUser, int>, IXBotUserEntityHub
{
public XBotUserEntityHub(
ILogger<XBotUserEntityHub> logger
) : base(logger)
{ }
}
}
@@ -0,0 +1,21 @@
using xDataService.Providers;
using xDataService.Configuration;
using xBotService.Models.Entities;
using xBotService.Interfaces.Entities;
namespace xBotService.Providers.Entities
{
public class XBotUserInMemoryRepository : XBaseInMemoryRepository<XBotUser, int>, IXBotUserRepository
{
public XBotUserInMemoryRepository(
XDataServiceConfiguration configuration,
IXBotUserKeyGenerator keyGenerator = null,
IXBotUserRepositoryEvents baseRepositoryEvents = null
) : base(
configuration,
keyGenerator,
baseRepositoryEvents
)
{ }
}
}
@@ -0,0 +1,25 @@
using xDataService.Providers;
using xDataService.Configuration;
using xBotService.Models.Entities;
using xBotService.Interfaces.Entities;
namespace xBotService.Providers.Entities
{
public class XBotUserMongoRepository : XBaseMongoRepository<XBotUser, int>, IXBotUserRepository
{
public XBotUserMongoRepository(
XDataBaseConfiguration dbConfiguration,
XDataServiceConfiguration configuration,
string collectionName = null,
IXBotUserKeyGenerator keyGenerator = null,
IXBotUserRepositoryEvents baseRepositoryEvents = null
) : base(
dbConfiguration,
configuration,
collectionName,
keyGenerator,
baseRepositoryEvents
)
{ }
}
}
+23
View File
@@ -0,0 +1,23 @@
using xDataService.Providers;
using xDataService.Configuration;
using xBotService.Models.Entities;
using xBotService.Interfaces.Entities;
namespace xBotService.Providers.Entities
{
public abstract class XBotUserSeederBase : XBaseDbSeeder<XBotUser, int>, IXBotUserSeeder
{
protected XBotUserSeederBase(
string entity,
string database,
IXBotUserRepository repository,
XDataServiceConfiguration dataServiceConfiguration
) : base(
entity,
database,
repository,
dataServiceConfiguration
)
{ }
}
}