ModelConfigurationBuilder.Properties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Properties(Type) |
Marks the given and derived types as corresponding to entity type properties. |
Properties(Type, Action<PropertiesConfigurationBuilder>) |
Marks the given and derived types as corresponding to entity type properties. |
Properties<TProperty>(Action<PropertiesConfigurationBuilder<TProperty>>) |
Marks the given and derived types as corresponding to entity type properties. |
Properties<TProperty>() |
Marks the given and derived types as corresponding to entity type properties. |
Properties(Type)
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
Marks the given and derived types as corresponding to entity type properties.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder Properties (Type propertyType);
abstract member Properties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.Properties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function Properties (propertyType As Type) As PropertiesConfigurationBuilder
Parameters
- propertyType
- Type
The property type to be configured.
Returns
An object that can be used to configure the property.
Remarks
This can also be called on an interface or an unbound generic type to apply the configuration to all properties of implementing and constructed types.
See Pre-convention model building in EF Core for more information and examples.
Applies to
Properties(Type, Action<PropertiesConfigurationBuilder>)
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
Marks the given and derived types as corresponding to entity type properties.
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder Properties (Type propertyType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> buildAction);
abstract member Properties : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.Properties : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function Properties (propertyType As Type, buildAction As Action(Of PropertiesConfigurationBuilder)) As ModelConfigurationBuilder
Parameters
- propertyType
- Type
The property type to be configured.
- buildAction
- Action<PropertiesConfigurationBuilder>
An action that performs configuration of the property.
Returns
The same ModelConfigurationBuilder instance so that additional configuration calls can be chained.
Remarks
This can also be called on an interface or an unbound generic type to apply the configuration to all properties of implementing and constructed types.
See Pre-convention model building in EF Core for more information and examples.
Applies to
Properties<TProperty>(Action<PropertiesConfigurationBuilder<TProperty>>)
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
Marks the given and derived types as corresponding to entity type properties.
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder Properties<TProperty> (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty>> buildAction);
abstract member Properties : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.Properties : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function Properties(Of TProperty) (buildAction As Action(Of PropertiesConfigurationBuilder(Of TProperty))) As ModelConfigurationBuilder
Type Parameters
- TProperty
The property type to be configured.
Parameters
- buildAction
- Action<PropertiesConfigurationBuilder<TProperty>>
An action that performs configuration of the property.
Returns
The same ModelConfigurationBuilder instance so that additional configuration calls can be chained.
Remarks
This can also be called on an interface to apply the configuration to all properties of implementing types.
See Pre-convention model building in EF Core for more information and examples.
Applies to
Properties<TProperty>()
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
- Source:
- ModelConfigurationBuilder.cs
Marks the given and derived types as corresponding to entity type properties.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> Properties<TProperty> ();
abstract member Properties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
override this.Properties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function Properties(Of TProperty) () As PropertiesConfigurationBuilder(Of TProperty)
Type Parameters
- TProperty
The property type to be configured.
Returns
An object that can be used to configure the properties.
Remarks
This can also be called on an interface to apply the configuration to all properties of implementing types.
See Pre-convention model building in EF Core for more information and examples.
Applies to
Entity Framework