RelationalPropertyExtensions.GetDefaultConstraintName 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
| Name | Description |
|---|---|
| GetDefaultConstraintName(IReadOnlyProperty) |
Gets the default constraint name. |
| GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier) |
Gets the default constraint name. |
GetDefaultConstraintName(IReadOnlyProperty)
Gets the default constraint name.
public static string? GetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> string
<Extension()>
Public Function GetDefaultConstraintName (property As IReadOnlyProperty) As String
Parameters
- property
- IReadOnlyProperty
The property.
Returns
Applies to
GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)
Gets the default constraint name.
public static string? GetDefaultConstraintName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultConstraintName (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As String
Parameters
- property
- IReadOnlyProperty
The property.
- storeObject
- StoreObjectIdentifier
The store object identifier to generate the name for.