Table of Contents

Class CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity>

Namespace
Apizr.Requesting.Attributes
Assembly
Apizr.dll

Tells Apizr to auto register an IApizrManager<TWebApi> for this decorated entity (works only with IServiceCollection extensions registration)

[AttributeUsage(AttributeTargets.Class)]
public class CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity> : CrudEntityAttribute

Type Parameters

TKey

This specific api entity's crud key type (default: null = typeof(int))

TReadAllResult

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

TReadAllParams

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

TModelEntity

Model entity type mapped with this api entity type (default: null = decorated api entity type)

Inheritance
CrudEntityAttribute<TKey, TReadAllResult, TReadAllParams, TModelEntity>
Inherited Members

Constructors

CrudEntityAttribute(string)

Tells Apizr to auto register an IApizrManager<TWebApi> for this decorated entity (works only with IServiceCollection extensions registration)

public CrudEntityAttribute(string baseUri)

Parameters

baseUri string

This specific api entity's base crud uri