CosmosEntityTypeExtensions.SetETagPropertyName 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
SetETagPropertyName(IMutableEntityType, String) |
Sets the name of the property that is used to store the ETag key. |
SetETagPropertyName(IConventionEntityType, String, Boolean) |
Sets the name of the property that is used to store the ETag. |
SetETagPropertyName(IMutableEntityType, String)
Sets the name of the property that is used to store the ETag key.
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetETagPropertyName (entityType As IMutableEntityType, name As String)
Parameters
- entityType
- IMutableEntityType
The entity type to set the etag property name for.
- name
- String
The name to set.
Applies to
SetETagPropertyName(IConventionEntityType, String, Boolean)
Sets the name of the property that is used to store the ETag.
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
public static string? SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- entityType
- IConventionEntityType
The entity type to set the ETag property name for.
- name
- String
The name to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
Applies to
Entity Framework