Class CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity>
- Namespace
- Apizr.Requesting
- Assembly
- Apizr.dll
Tells Apizr to auto register an IApizrManager<TWebApi> for this decorated entity (works only with IServiceCollection extensions registration)
[AttributeUsage(AttributeTargets.Class)]
public class CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity> : CrudEntityAttribute
Type Parameters
TKeyThis specific api entity's crud key type (default: null = typeof(int))
TReadAllResultThe "ReadAll" query result type (default: null = typeof(IEnumerable{}))
TReadAllParamsReadAll query parameters type (default: null = typeof(IDictionary{string, object}))
TModelEntityModel entity type mapped with this api entity type (default: null = decorated api entity type)
- Inheritance
-
CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity>
- Inherited Members
Constructors
CrudEntityAttribute(string)
Tells Apizr to auto register an IApizrManager<TWebApi> for this decorated entity (works only with IServiceCollection extensions registration)
public CrudEntityAttribute(string baseUri)
Parameters
baseUristringThis specific api entity's base crud uri