only allow reference types on the server side

This commit is contained in:
Pilzinsel64
2025-03-28 11:08:48 +01:00
parent b3e24d7fdc
commit 81c0d51417
5 changed files with 44 additions and 47 deletions

View File

@@ -7,7 +7,7 @@ namespace Pilz.Net.Api.Server;
public abstract class BaseItemHandler<TEntity, TUpdateMsg>(IApiServer server)
: BaseHandler<TEntity, TUpdateMsg>(server)
where TEntity : IDataObject
where TEntity : class, IDataObject
where TUpdateMsg : ApiMessage
{
protected virtual bool RegisterGetAll => true;