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
TApiEntity
The mapped api entity type
TApiEntityKey
The mapped api entity's crud key type (default: null = typeof(int))
TApiEntityReadAllResult
The mapped api entity "ReadAll" query result type (default: null = typeof(IEnumerable{}))
TApiEntityReadAllParams
The 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
apiEntityBaseUri
string