last works on Implementing XBotUser Entity and Repository Implementation based on xDataService ...
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using xDataService.Providers;
|
||||
using xDataService.Interfaces;
|
||||
using xBotService.Models.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using xBotService.Configuration.Entities;
|
||||
|
||||
namespace xBotService.Providers
|
||||
{
|
||||
public class XBotUserEntityRegisterar : XBaseEntityRegisterar, IXEntityRegisterar
|
||||
{
|
||||
public XBotUserEntityRegisterar()
|
||||
: base(nameof(XBotUserEntityRegisterar))
|
||||
{
|
||||
//
|
||||
// Add XBotUser Entity ...
|
||||
AddEntity<XBotUser, int>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configure Entities ...
|
||||
/// </summary>
|
||||
/// <param name="modelBuilder"></param>
|
||||
public override void ConfigureEntities(ModelBuilder modelBuilder)
|
||||
{
|
||||
//
|
||||
// Configure Entity Using Provided ...
|
||||
modelBuilder
|
||||
.ApplyConfigurationsFromAssembly(typeof(XBotUserEntityConfiguration).Assembly);
|
||||
|
||||
//
|
||||
base.ConfigureEntities(modelBuilder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user