21 lines
573 B
C#
21 lines
573 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<TEntity, TKey> : ObjectGraphType<TEntity>
|
|
where TEntity : XBaseEntity<TKey> {
|
|
public XBaseGraphObjectType () {
|
|
//
|
|
Name = $"{typeof(TEntity).Name}GraphType";
|
|
|
|
//
|
|
Field (x => x.Id);
|
|
Field (x => x.Deleted);
|
|
}
|
|
}
|
|
} |