17 lines
520 B
C#
17 lines
520 B
C#
using GraphQL.Types;
|
|
using xDataService.Models;
|
|
using xModels.Base;
|
|
|
|
namespace xDataService.GraphQL {
|
|
public class XBaseGraphQLEventType<TEntity, TKey, TGraphType> : ObjectGraphType<XBaseEventModel<TEntity>>
|
|
where TGraphType : IGraphType
|
|
where TEntity : XBaseEntity<TKey> {
|
|
public XBaseGraphQLEventType () {
|
|
//
|
|
Name = nameof (XBaseGraphQLEventType<TEntity, TKey, TGraphType>);
|
|
|
|
//
|
|
Field (x => x.Model, type : typeof (TGraphType));
|
|
}
|
|
}
|
|
} |