Class CrudEntityAttribute<TKey, TReadAllResult>
- 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> : CrudEntityAttribute
Type Parameters
TKey
This specific api entity's crud key type (default: null = typeof(int))
TReadAllResult
The "ReadAll" query result type (default: null = typeof(IEnumerable{}))
- Inheritance
-
CrudEntityAttribute<TKey, TReadAllResult>
- 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
baseUri
stringThis specific api entity's base crud uri