Get Specified Item Tags ...
This commit is contained in:
@@ -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
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
)
|
||||
{ }
|
||||
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user