From 2a88195d15ea42735fda9173c214a595278b71a5 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Wed, 13 May 2026 23:26:37 +0330 Subject: [PATCH] last ... --- Helpers/XDataServiceHelper.cs | 516 +--------------------------------- xDataService.csproj | 2 +- 2 files changed, 2 insertions(+), 516 deletions(-) diff --git a/Helpers/XDataServiceHelper.cs b/Helpers/XDataServiceHelper.cs index 755cf55..6b451ed 100644 --- a/Helpers/XDataServiceHelper.cs +++ b/Helpers/XDataServiceHelper.cs @@ -1185,521 +1185,6 @@ namespace xDataService.Helpers } } - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation - >( - IApplicationBuilder source, - XInMemoryRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TEventsService : IXBaseRepositoryEvents - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TRepositoryImplementation : XBaseInMemoryRepository - where TGraphQuery : XBaseGraphQLQuery - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation, - TSeederService, - TSeederImplementation - >( - IApplicationBuilder source, - XInMemoryRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TSeederService : IXBaseDbSeeder - where TEventsService : IXBaseRepositoryEvents - where TSeederImplementation : XBaseDbSeeder - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TRepositoryImplementation : XBaseInMemoryRepository - where TGraphQuery : XBaseGraphQLQuery - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation - >( - IApplicationBuilder source, - XMongoRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TEventsService : IXBaseRepositoryEvents - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TRepositoryImplementation : XBaseMongoRepository - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TGraphQuery : XBaseGraphQLQuery - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation, - TSeederService, - TSeederImplementation - >( - IApplicationBuilder source, - XMongoRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TSeederService : IXBaseDbSeeder - where TEventsService : IXBaseRepositoryEvents - where TSeederImplementation : XBaseDbSeeder - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TRepositoryImplementation : XBaseMongoRepository - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TGraphQuery : XBaseGraphQLQuery - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation, - TContext - >( - IApplicationBuilder source, - XEFRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TContext : XDbContext - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TEventsService : IXBaseRepositoryEvents - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TGraphQuery : XBaseGraphQLQuery - where TRepositoryImplementation : XBaseEFRepository - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// - /// Register Repository ... - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public static void UseXRepository< - TEntity, - TKey, - TKeyGeneratorService, - TKeyGeneratorImplementation, - TEventsService, - TEventsImplementation, - TGraph, - TGraphKey, - TGraphQuery, - TGraphTypeHelperService, - TGraphTypeHelperImplementation, - TGraphSchema, - TRepositoryService, - TRepositoryImplementation, - TContext, - TSeederService, - TSeederImplementation - >( - IApplicationBuilder source, - XEFRepositoryDescriptor repositoryDescriptor - ) - where TGraphSchema : Schema - where TContext : XDbContext - where TGraphKey : IGraphType - where TEntity : XBaseEntity - where TGraph : XBaseGraphObjectType - where TSeederService : IXBaseDbSeeder - where TEventsService : IXBaseRepositoryEvents - where TSeederImplementation : XBaseDbSeeder - where TKeyGeneratorService : IXKeyGenerator - where TRepositoryService : IXBaseRepository - where TEventsImplementation : XBaseRepositoryEvents - where TKeyGeneratorImplementation : XKeyGenerator - where TGraphTypeHelperService : IXBaseGraphQLTypeHelper - where TGraphQuery : XBaseGraphQLQuery - where TRepositoryImplementation : XBaseEFRepository - where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper - { - // - // Validate Args ... - var isValid = repositoryDescriptor.IsValid(); - if (!isValid) - { - return; - } - - // - // Chck Seeders ... - isValid = repositoryDescriptor.HasSeeder(); - if (isValid) - { - } - - // - // GraphQL ... - isValid = repositoryDescriptor.HasGraphSupport(); - if (isValid) - { - // // - // UseXGraphQL( - // source, - // repositoryDescriptor - // ); - } - } - - /// /// Use GraphQL ... /// @@ -1751,6 +1236,7 @@ namespace xDataService.Helpers options = new GraphQLPlaygroundOptions(); } options.Path = "/ui/playground"; + options.GraphQLEndPoint = graphPath; // source.UseGraphQLPlayground(options); diff --git a/xDataService.csproj b/xDataService.csproj index 72d36f2..42e40fd 100644 --- a/xDataService.csproj +++ b/xDataService.csproj @@ -52,7 +52,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive