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 xTagService.Interfaces;
|
||||
using xTagService.Interfaces.Entities;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.Providers
|
||||
namespace xTagService.Providers.Entities
|
||||
{
|
||||
public abstract class XTagSeederBase : XBaseDbSeeder<XTag, int>, IXTagSeeder
|
||||
{
|
||||
@@ -1,5 +1,6 @@
|
||||
using xDataService.Configuration;
|
||||
using xDataService.GraphQL;
|
||||
using xTagService.Constants;
|
||||
using xTagService.Interfaces.Entities;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
@@ -14,12 +15,12 @@ namespace xTagService.Providers.GraphQL
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "tags";
|
||||
return XTagServiceConstants.XTagCollectionName;
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "tag";
|
||||
return XTagServiceConstants.XTagSingleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user