Initial Commit ...
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user