Get Specified Item Tags ...

This commit is contained in:
2026-05-28 07:33:31 +03:30
parent 93aafe24f8
commit 64afaccafa
7 changed files with 156 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xFileService.Controllers;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
namespace xServices.Controllers
{
public class XFileRepositoryController : XFileRepositoryControllerBase
{
public XFileRepositoryController(
ILogger<XFileRepositoryController> logger,
XAppConfiguration appConfiguration,
XValidationProvider validationProvider,
IXFileRepository repository,
Func<IQueryable<XFile>, IOrderedQueryable<XFile>> defaultOrderBuilder = null,
Func<IQueryable<XFile>, IIncludableQueryable<XFile, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
validationProvider,
repository,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
using xFileService.Controllers;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
namespace xServices.Controllers
{
public class XFileRepositoryProviderController : XFileRepositoryProviderControllerBase
{
public XFileRepositoryProviderController(
ILogger<XFileRepositoryProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXFileRepositoryProvider provider,
Func<IQueryable<XFile>, IOrderedQueryable<XFile>> defaultOrderBuilder = null,
Func<IQueryable<XFile>, IIncludableQueryable<XFile, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xFileService.Controllers;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
namespace xServices.Controllers
{
public class XFileServiceController : XFileServiceControllerBase
{
public XFileServiceController(
ILogger<XFileServiceController> logger,
XAppConfiguration appConfiguration,
XValidationProvider validationProvider,
IXFileRepositoryService repositoryService,
Func<IQueryable<XFile>, IOrderedQueryable<XFile>> defaultOrderBuilder = null,
Func<IQueryable<XFile>, IIncludableQueryable<XFile, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
validationProvider,
repositoryService,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
using xFileService.Controllers;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
namespace xServices.Controllers
{
public class XFileServiceProviderController : XFileServiceProviderControllerBase
{
public XFileServiceProviderController(
ILogger<XFileServiceProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXFileServiceProvider provider,
Func<IQueryable<XFile>, IOrderedQueryable<XFile>> defaultOrderBuilder = null,
Func<IQueryable<XFile>, IIncludableQueryable<XFile, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+14
View File
@@ -6,6 +6,7 @@ using Microsoft.Extensions.DependencyInjection;
using xCommons.Extensions; using xCommons.Extensions;
using xDataService.DI; using xDataService.DI;
using xDataService.Models; using xDataService.Models;
using xFileService.DI;
using xIdentityService.DI; using xIdentityService.DI;
using xMessageService.DI; using xMessageService.DI;
using xPushService.DI; using xPushService.DI;
@@ -199,6 +200,12 @@ namespace xServices.DI
app.UseXTagService( app.UseXTagService(
isDevelopmentEnvironment: isDevelopmentEnvironment isDevelopmentEnvironment: isDevelopmentEnvironment
); );
//
// Using File Service ...
app.UseXFileService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
} }
// //
@@ -305,6 +312,13 @@ namespace xServices.DI
lifeTime: lifeTime, lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF repositoryType: xDataService.Constants.XRepositoryType.EF
); );
//
// Register File Service ...
services.AddXFileService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
} }
#endregion #endregion
} }
+7 -1
View File
@@ -2,8 +2,10 @@ using Microsoft.EntityFrameworkCore;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Db; using xDataService.Db;
using xDataService.Providers; using xDataService.Providers;
using xFileService.Providers;
using xServices.Models.Entities; using xServices.Models.Entities;
using xStringService.Providers; using xStringService.Providers;
using xTagService.Providers;
// using xStringService.Models.Entities; // using xStringService.Models.Entities;
namespace xServices.Databases namespace xServices.Databases
@@ -28,7 +30,11 @@ namespace xServices.Databases
options, options,
config, config,
dynamicEntityHandlers, dynamicEntityHandlers,
new string[] { nameof(XStringEntityRegisterar) } new string[] {
nameof(XTagEntityRegisterar),
nameof(XFileEntityRegisterar),
nameof(XStringEntityRegisterar),
}
) )
{ } { }
+1
View File
@@ -35,6 +35,7 @@
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> --> <!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> --> <!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
<ProjectReference Include="..\xTagService\xTagService.csproj" /> <ProjectReference Include="..\xTagService\xTagService.csproj" />
<ProjectReference Include="..\xFileService\xFileService.csproj" />
<ProjectReference Include="..\xStringService\xStringService.csproj" /> <ProjectReference Include="..\xStringService\xStringService.csproj" />
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" /> <ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
<ProjectReference Include="..\xMessageService\xMessageService.csproj" /> <ProjectReference Include="..\xMessageService\xMessageService.csproj" />