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
apiEntityBaseUristringThe mapped api entity's base crud uri
apiEntityTypeTypeThe mapped api entity type
apiEntityKeyTypeTypeThe mapped api entity's crud key type (default: null = typeof(int))
apiEntityReadAllResultTypeTypeThe mapped api entity "ReadAll" query result type (default: null = typeof(IEnumerable{}))
apiEntityReadAllParamsTypeTypeThe mapped api entity ReadAll query parameters type (default: null = typeof(IDictionary{string, object}))