This commit is contained in:
2026-05-08 04:30:24 +03:30
parent 58814f4670
commit 6b6790b61a
4 changed files with 59 additions and 2 deletions
+1 -1
View File
@@ -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 ...
+25
View File
@@ -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;
}
}
}
+30
View File
@@ -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
View File
@@ -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" />