Class MappedCrudEntityAttribute<TApiEntity, TApiEntityKey, TApiEntityReadAllResult, TApiEntityReadAllParams>
Tells Apizr to auto register an IApizrManager<TWebApi> for the referenced api entity and mapped to this decorated model entity (works only with IServiceCollection extensions registration)
[AttributeUsage(AttributeTargets.Class)]
public class MappedCrudEntityAttribute<TApiEntity, TApiEntityKey, TApiEntityReadAllResult, TApiEntityReadAllParams> : MappedCrudEntityAttribute
Type Parameters
TApiEntityThe mapped api entity type
TApiEntityKeyThe mapped api entity's crud key type (default: null = typeof(int))
TApiEntityReadAllResultThe mapped api entity "ReadAll" query result type (default: null = typeof(IEnumerable{}))
TApiEntityReadAllParamsThe mapped api entity ReadAll query parameters type (default: null = typeof(IDictionary{string, object}))
- Inheritance
-
MappedCrudEntityAttribute<TApiEntity, TApiEntityKey, TApiEntityReadAllResult, TApiEntityReadAllParams>
- Inherited Members
Constructors
MappedCrudEntityAttribute(string)
public MappedCrudEntityAttribute(string apiEntityBaseUri)
Parameters
apiEntityBaseUristring