Skip to content

GeneratedFromAttribute Class

Marks a partial MVC model record whose members are produced by the MVC model source generator from the given core model type: bound properties with model binders resolved from the core wire-format markers, validation attributes translated to their executable MVC counterparts, and the mapping method projecting the bound model back onto the core type.

C#
public sealed class GeneratedFromAttribute : System.Attribute

Inheritance System.ObjectSystem.Attribute → GeneratedFromAttribute

Constructors

GeneratedFromAttribute(Type) Constructor

Marks a partial MVC model record whose members are produced by the MVC model source generator from the given core model type: bound properties with model binders resolved from the core wire-format markers, validation attributes translated to their executable MVC counterparts, and the mapping method projecting the bound model back onto the core type.

C#
public GeneratedFromAttribute(System.Type coreModelType);

Parameters

coreModelType System.Type

The core model type in Abblix.Oidc.Server.Model to generate from.

Properties

GeneratedFromAttribute.CoreModelType Property

The core model type the MVC model is generated from.

C#
public System.Type CoreModelType { get; }

Property Value

System.Type

GeneratedFromAttribute.SupportsGet Property

Indicates that the endpoint accepts the request via HTTP GET as well, so every generated bound property carries the corresponding flag (e.g. the authorization and end-session endpoints).

C#
public bool SupportsGet { get; init; }

Property Value

System.Boolean