Class MappedCrudEntityAttribute
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 : CrudEntityAttribute
- Inheritance
-
MappedCrudEntityAttribute
- Derived
- Inherited Members
Constructors
MappedCrudEntityAttribute(string, Type, Type, Type, Type)
Define some crud api settings from this mapped model entity
public MappedCrudEntityAttribute(string apiEntityBaseUri, Type apiEntityType, Type apiEntityKeyType = null, Type apiEntityReadAllResultType = null, Type apiEntityReadAllParamsType = null)
Parameters
apiEntityBaseUri
stringThe mapped api entity's base crud uri
apiEntityType
TypeThe mapped api entity type
apiEntityKeyType
TypeThe mapped api entity's crud key type (default: null = typeof(int))
apiEntityReadAllResultType
TypeThe mapped api entity "ReadAll" query result type (default: null = typeof(IEnumerable{}))
apiEntityReadAllParamsType
TypeThe mapped api entity ReadAll query parameters type (default: null = typeof(IDictionary{string, object}))