21 lines
549 B
C#
21 lines
549 B
C#
using GraphQL.Types;
|
|
using xModels.Base;
|
|
|
|
namespace xDataService.GraphQL
|
|
{
|
|
/// <summary>
|
|
/// Base Entity GraphType Object ...
|
|
/// </summary>
|
|
/// <typeparam name="TKey"></typeparam>
|
|
public abstract class XBaseGraphObjectType<T, TKey> : ObjectGraphType<T>
|
|
where T : XBaseEntity<TKey> {
|
|
public XBaseGraphObjectType () {
|
|
//
|
|
Name = $"{typeof(T).Name}GraphType";
|
|
|
|
//
|
|
Field (x => x.Id);
|
|
Field (x => x.Deleted);
|
|
}
|
|
}
|
|
} |