Table of Contents

Class MappedCrudEntityAttribute

Namespace
Apizr.Mapping
Assembly
Apizr.dll

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 string

The mapped api entity's base crud uri

apiEntityType Type

The mapped api entity type

apiEntityKeyType Type

The mapped api entity's crud key type (default: null = typeof(int))

apiEntityReadAllResultType Type

The mapped api entity "ReadAll" query result type (default: null = typeof(IEnumerable{}))

apiEntityReadAllParamsType Type

The mapped api entity ReadAll query parameters type (default: null = typeof(IDictionary{string, object}))