MutableEntityTypeExtensions.AddProperty 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
AddProperty(IMutableEntityType, MemberInfo) |
Adds a property to this entity type. |
AddProperty(IMutableEntityType, PropertyInfo) |
Adds a property to this entity. |
AddProperty(IMutableEntityType, String) |
Adds a property to this entity type. |
AddProperty(IMutableEntityType, String, Type) |
Adds a property to this entity type. |
AddProperty(IMutableEntityType, MemberInfo)
Adds a property to this entity type.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, memberInfo As MemberInfo) As IMutableProperty
Parameters
- entityType
- IMutableEntityType
The entity type.
- memberInfo
- MemberInfo
The corresponding member on the entity class.
Returns
The newly created property.
Applies to
AddProperty(IMutableEntityType, PropertyInfo)
Adds a property to this entity.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty
Parameters
- entityType
- IMutableEntityType
The entity type to add the property to.
- propertyInfo
- PropertyInfo
The corresponding property in the entity class.
Returns
The newly created property.
Applies to
AddProperty(IMutableEntityType, String)
Adds a property to this entity type.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String) As IMutableProperty
Parameters
- entityType
- IMutableEntityType
The entity type.
- name
- String
The name of the property to add.
Returns
The newly created property.
Applies to
AddProperty(IMutableEntityType, String, Type)
Adds a property to this entity type.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty
Parameters
- entityType
- IMutableEntityType
The entity type.
- name
- String
The name of the property to add.
- propertyType
- Type
The type of value the property will hold.
Returns
The newly created property.
Applies to
Entity Framework