last ...
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
using xDataService.Interfaces;
|
||||
using xDataService.Models;
|
||||
|
||||
namespace xServices.Databases
|
||||
{
|
||||
public class XApiDatabaseDescriptor : XDatabaseDescriptor<XApiDbContext>, IXDatabaseDescriptor<XApiDbContext>
|
||||
{
|
||||
public XApiDatabaseDescriptor() : base(
|
||||
name: "xApiDb",
|
||||
repositories: new List<XRepositoryDescriptor>
|
||||
{
|
||||
//
|
||||
// XTest Entity ...
|
||||
// new XRepositoryDescriptor
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
}
|
||||
)
|
||||
{
|
||||
// Context = XApiDbContext;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using xDataService.Configuration;
|
||||
using xDataService.Db;
|
||||
|
||||
namespace xServices.Databases
|
||||
{
|
||||
public class XApiDbContext : XDbContext
|
||||
{
|
||||
//
|
||||
#region DbSets ...
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Navigation Property Entities ...
|
||||
#endregion
|
||||
|
||||
public XApiDbContext(
|
||||
DbContextOptions options,
|
||||
XDataServiceConfiguration config
|
||||
) : base(options, config) { }
|
||||
|
||||
//
|
||||
public override void OnXModelCreating(ModelBuilder modelBuilder)
|
||||
{ }
|
||||
|
||||
//
|
||||
public override void OnXConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user