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 xDataService.DI;
using xDataService.Models;
using xFileService.DI;
using xIdentityService.DI;
using xMessageService.DI;
using xPushService.DI;
@@ -199,6 +200,12 @@ namespace xServices.DI
app.UseXTagService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
//
// Using File Service ...
app.UseXFileService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
}
//
@@ -305,6 +312,13 @@ namespace xServices.DI
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
//
// Register File Service ...
services.AddXFileService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
}
#endregion
}
+7 -1
View File
@@ -2,8 +2,10 @@ using Microsoft.EntityFrameworkCore;
using xDataService.Configuration;
using xDataService.Db;
using xDataService.Providers;
using xFileService.Providers;
using xServices.Models.Entities;
using xStringService.Providers;
using xTagService.Providers;
// using xStringService.Models.Entities;
namespace xServices.Databases
@@ -28,7 +30,11 @@ namespace xServices.Databases
options,
config,
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="..\xPushHelper\xPushHelper.csproj" /> -->
<ProjectReference Include="..\xTagService\xTagService.csproj" />
<ProjectReference Include="..\xFileService\xFileService.csproj" />
<ProjectReference Include="..\xStringService\xStringService.csproj" />
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />