RelationalPropertyExtensions.GetDefaultConstraintName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetDefaultConstraintName(IReadOnlyProperty) |
會取得預設的約束名稱。 |
| GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier) |
會取得預設的約束名稱。 |
GetDefaultConstraintName(IReadOnlyProperty)
會取得預設的約束名稱。
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
參數
- property
- IReadOnlyProperty
屬性。
傳回
適用於
GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)
會取得預設的約束名稱。
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
參數
- property
- IReadOnlyProperty
屬性。
- storeObject
- StoreObjectIdentifier
儲存物件識別碼,用來產生名稱。