RelationalPropertyExtensions.SetColumnName 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
SetColumnName(IMutableProperty, String) |
Sets the column to which the property is mapped. |
SetColumnName(IConventionProperty, String, Boolean) |
Sets the column to which the property is mapped. |
SetColumnName(IMutableProperty, String, StoreObjectIdentifier) |
Sets the column to which the property is mapped for a particular table-like store object. |
SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean) |
Sets the column to which the property is mapped for a particular table-like store object. |
SetColumnName(IMutableProperty, String)
Sets the column to which the property is mapped.
public static void SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
public static void SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetColumnName (property As IMutableProperty, name As String)
Parameters
- property
- IMutableProperty
The property.
- name
- String
The name to set.
Applies to
SetColumnName(IConventionProperty, String, Boolean)
Sets the column to which the property is mapped.
public static void SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string? SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Sub SetColumnName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetColumnName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- property
- IConventionProperty
The property.
- name
- String
The name to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
SetColumnName(IMutableProperty, String, StoreObjectIdentifier)
Sets the column to which the property is mapped for a particular table-like store object.
public static void SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
public static void SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetColumnName (property As IMutableProperty, name As String, ByRef storeObject As StoreObjectIdentifier)
Parameters
- property
- IMutableProperty
The property.
- name
- String
The name to set.
- storeObject
- StoreObjectIdentifier
The identifier of the table-like store object containing the column.
Applies to
SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)
Sets the column to which the property is mapped for a particular table-like store object.
public static string SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
public static string? SetColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * StoreObjectIdentifier * bool -> string
<Extension()>
Public Function SetColumnName (property As IConventionProperty, name As String, ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- property
- IConventionProperty
The property.
- name
- String
The name to set.
- storeObject
- StoreObjectIdentifier
The identifier of the table-like store object containing the column.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework