last ...
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using xDataService.Configuration;
|
||||
using xDataService.Interfaces;
|
||||
using xDataService.Providers;
|
||||
using xStringService.Interfaces;
|
||||
using xStringService.Models.Entities;
|
||||
|
||||
namespace xStringService.Providers.Entities
|
||||
{
|
||||
public abstract class XStringSeederBase : XBaseDbSeeder<XString, int>, IXStringSeeder
|
||||
{
|
||||
protected XStringSeederBase(
|
||||
string entity,
|
||||
string database,
|
||||
IXBaseRepository<XString, int> repository,
|
||||
XDataServiceConfiguration dataServiceConfiguration
|
||||
) : base(
|
||||
entity,
|
||||
database,
|
||||
repository,
|
||||
dataServiceConfiguration
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using xDataService.Interfaces;
|
||||
using xDataService.Providers;
|
||||
using xStringService.Models.Entities;
|
||||
|
||||
namespace xStringService.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// an Entity Registerar class for XStringService ...
|
||||
/// </summary>
|
||||
public class XStringEntityRegisterar : XBaseEntityRegisterar, IXEntityRegisterar
|
||||
{
|
||||
public XStringEntityRegisterar()
|
||||
: base(nameof(XStringEntityRegisterar))
|
||||
{
|
||||
//
|
||||
// Add XString Entity ...
|
||||
AddEntity<XString, int>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configure Entities ...
|
||||
/// </summary>
|
||||
/// <param name="modelBuilder"></param>
|
||||
public override void ConfigureEntities(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.ConfigureEntities(modelBuilder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user