From 3d7f5b58a86f71ad7a2a1d24d952602ac6c57447 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Wed, 13 May 2026 23:12:29 +0330 Subject: [PATCH] add some changes on GraphQL Implementations ... --- Providers/XTestDbSeeder.cs | 10 +++++----- Providers/XTestGraphQLTypeHelper.cs | 8 ++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Providers/XTestDbSeeder.cs b/Providers/XTestDbSeeder.cs index 8479c08..6fac3b6 100644 --- a/Providers/XTestDbSeeder.cs +++ b/Providers/XTestDbSeeder.cs @@ -1,6 +1,5 @@ using System; using xDataService.Configuration; -using xDataService.Interfaces; using xDataService.Providers; using xServices.Interfaces; using xServices.Models.Entities; @@ -10,12 +9,13 @@ namespace xServices.Providers public class XTestDbSeeder : XBaseDbSeeder, IXTestDbSeeder { public XTestDbSeeder( - IXBaseRepository repository, + IXTestRepository repository, XDataServiceConfiguration dataServiceConfiguration ) : base( - "xApiDb", - repository, - dataServiceConfiguration + database: "xApiDb", + entity: nameof(XTest), + repository: repository, + dataServiceConfiguration: dataServiceConfiguration ) { } } diff --git a/Providers/XTestGraphQLTypeHelper.cs b/Providers/XTestGraphQLTypeHelper.cs index 84cc9dc..2235d93 100644 --- a/Providers/XTestGraphQLTypeHelper.cs +++ b/Providers/XTestGraphQLTypeHelper.cs @@ -1,4 +1,5 @@ using System; +using xDataService.Configuration; using xDataService.GraphQL; using xServices.Interfaces; using xServices.Models.Entities; @@ -7,6 +8,13 @@ namespace xServices.Providers { public class XTestGraphQLTypeHelper : XBaseGraphQLTypeHelper, IXTestGraphQLTypeHelper { + + public XTestGraphQLTypeHelper( + XDataServiceConfiguration configuration + ) : base(configuration) + { + } + public override string GetInQueryCollectionName() { return "tests";