last works on Implementing XBotUser Entity and Repository Implementation based on xDataService ...
This commit is contained in:
@@ -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
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user