ITableBase.IsOptional Method
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.
IsOptional(IEntityType) |
Gets the value indicating whether an entity of the given type might not be present in a row. |
IsOptional(ITypeBase) |
Gets the value indicating whether an entity of the given type might not be present in a row. |
- Source:
- ITableBase.cs
Gets the value indicating whether an entity of the given type might not be present in a row.
public bool IsOptional (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member IsOptional : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
Public Function IsOptional (entityType As IEntityType) As Boolean
Parameters
- entityType
- IEntityType
Returns
Applies to
Entity Framework Core 7.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0 |
- Source:
- ITableBase.cs
- Source:
- ITableBase.cs
Gets the value indicating whether an entity of the given type might not be present in a row.
public bool IsOptional (Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
abstract member IsOptional : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> bool
Public Function IsOptional (typeBase As ITypeBase) As Boolean
Parameters
- typeBase
- ITypeBase
Returns
Applies to
Entity Framework Core 9.0 and Entity Framework Core 8.0
Product | Versions |
---|---|
Entity Framework Core | 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: