Add Entities and Repositories ...
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using xDataService.Events;
|
||||
using xTagService.Interfaces.Entities;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.DataHelper.Events
|
||||
{
|
||||
public class XTagEvents : XBaseRepositoryEvents<XTag>, IXTagEvents
|
||||
{ }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using xDataService.Configuration;
|
||||
using xDataService.GraphQL;
|
||||
using xTagService.Interfaces.Entities;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.DataHelper.GraphQL
|
||||
{
|
||||
public class XTagGraphQLTypeHelper : XBaseGraphQLTypeHelper<XTag, int>, IXTagGraphQLTypeHelper
|
||||
{
|
||||
public XTagGraphQLTypeHelper(
|
||||
XDataServiceConfiguration configuration
|
||||
) : base(configuration)
|
||||
{ }
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "tags";
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "tag";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using GraphQL.Types;
|
||||
using xDataService.Configuration;
|
||||
using xDataService.GraphQL;
|
||||
using xTagService.Interfaces.Entities;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.DataHelper.GraphQL
|
||||
{
|
||||
public class XTagGraphQuery : XBaseGraphQLQuery<XTag, int, XTagGraphType, IntGraphType>
|
||||
{
|
||||
public XTagGraphQuery(
|
||||
XDataServiceConfiguration configuration,
|
||||
IXTagRepository repository,
|
||||
IXTagGraphQLTypeHelper helper
|
||||
) : base(
|
||||
configuration,
|
||||
repository,
|
||||
helper
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using GraphQL.Types;
|
||||
|
||||
namespace xTagService.DataHelper.GraphQL
|
||||
{
|
||||
public class XTagGraphSchema : Schema
|
||||
{
|
||||
public XTagGraphSchema(IServiceProvider services) : base(services)
|
||||
{
|
||||
Query = (XTagGraphQuery)services.GetService(typeof(XTagGraphQuery));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using xDataService.GraphQL;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.DataHelper.GraphQL
|
||||
{
|
||||
public class XTagGraphType : XBaseGraphObjectType<XTag, int>
|
||||
{
|
||||
public XTagGraphType() : base()
|
||||
{
|
||||
Field(x => x.Tag);
|
||||
Field(x => x.References);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using xDataService.Interfaces;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.Interfaces.Entities
|
||||
{
|
||||
public interface IXTagEvents: IXBaseRepositoryEvents<XTag>
|
||||
{ }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using xDataService.Interfaces;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.Interfaces.Entities
|
||||
{
|
||||
public interface IXTagGraphQLTypeHelper : IXBaseGraphQLTypeHelper<XTag, int>
|
||||
{ }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using xDataService.Interfaces;
|
||||
using xTagService.Models.Entities;
|
||||
|
||||
namespace xTagService.Interfaces.Entities
|
||||
{
|
||||
public interface IXTagRepository : IXBaseRepository<XTag, int>
|
||||
{ }
|
||||
}
|
||||
@@ -15,7 +15,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyDescriptionAttribute(("\r\n it is a Part of xDashboard on SaherElm IT Center which provides all Tag Rel" +
|
||||
"ated Futures ...\r\n "))]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3a8af391324d1ffdf0802d3f42236550168ebbe0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+620a11f3686a403712609908acf4fb33c309861a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("xTagService")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("xTagService")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
Reference in New Issue
Block a user