refactor and add using constants instead of hard coded strings ...
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
using xDataService.Configuration;
|
||||
using xDataService.Providers;
|
||||
using xStringService.Interfaces;
|
||||
using xStringService.Interfaces.Entities;
|
||||
using xStringService.Models.Entities;
|
||||
|
||||
namespace xStringService.Providers
|
||||
namespace xStringService.Providers.Entities
|
||||
{
|
||||
public abstract class XStringSeederBase : XBaseDbSeeder<XString, int>, IXStringSeeder
|
||||
{
|
||||
@@ -1,5 +1,6 @@
|
||||
using xDataService.Configuration;
|
||||
using xDataService.GraphQL;
|
||||
using xStringService.Constants;
|
||||
using xStringService.Interfaces.Entities;
|
||||
using xStringService.Models.Entities;
|
||||
|
||||
@@ -14,12 +15,12 @@ namespace xStringService.Providers.GraphQL
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "strings";
|
||||
return XStringServiceConstants.XStringCollectionName;
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "string";
|
||||
return XStringServiceConstants.XStringSingleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user