last ...
This commit is contained in:
@@ -9,7 +9,7 @@ using xStorageService.DI;
|
|||||||
|
|
||||||
namespace xServices.DI
|
namespace xServices.DI
|
||||||
{
|
{
|
||||||
public static class XDIHelperExtension
|
public static partial class XDIHelperExtension
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrive Services Configurations ...
|
/// Retrive Services Configurations ...
|
||||||
|
|||||||
@@ -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)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
+3
-1
@@ -29,8 +29,10 @@
|
|||||||
<!-- Project Dependencies -->
|
<!-- Project Dependencies -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\xCommons\xCommons.csproj" />
|
<ProjectReference Include="..\xCommons\xCommons.csproj" />
|
||||||
|
<ProjectReference Include="..\xDataService\xDataService.csproj" />
|
||||||
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
|
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
|
||||||
<ProjectReference Include="..\xDataHelper\xDataHelper.csproj" />
|
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
|
||||||
|
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
|
||||||
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
|
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
|
||||||
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
|
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
|
||||||
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />
|
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />
|
||||||
|
|||||||
Reference in New Issue
Block a user