Table of Contents

Class MappedCrudEntityAttribute<TApiEntity, TApiEntityKey, TApiEntityReadAllResult>

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<TApiEntity, TApiEntityKey, TApiEntityReadAllResult> : 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{}))

Inheritance
MappedCrudEntityAttribute<TApiEntity, TApiEntityKey, TApiEntityReadAllResult>
Inherited Members

Constructors

MappedCrudEntityAttribute(string)

public MappedCrudEntityAttribute(string apiEntityBaseUri)

Parameters

apiEntityBaseUri string