BackingFieldAttribute Class

Definition

Names the backing field associated with this property or navigation property.

C#
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class BackingFieldAttribute : Attribute
Inheritance
BackingFieldAttribute
Attributes

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

BackingFieldAttribute(String)

Initializes a new instance of the BackingFieldAttribute class.

Properties

Name

The name of the backing field.

Applies to

Proizvod Verzije
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0