IConventionModelBuilder.CanIgnore 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.
CanIgnore(String, Boolean) |
Returns a value indicating whether the given entity type name can be ignored from the current configuration source |
CanIgnore(Type, Boolean) |
Returns a value indicating whether the given entity type can be ignored from the current configuration source. |
- Source:
- IConventionModelBuilder.cs
- Source:
- IConventionModelBuilder.cs
- Source:
- IConventionModelBuilder.cs
Returns a value indicating whether the given entity type name can be ignored from the current configuration source
public bool CanIgnore (string typeName, bool fromDataAnnotation = false);
abstract member CanIgnore : string * bool -> bool
Public Function CanIgnore (typeName As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- typeName
- String
The entity type name to be removed from the model.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given entity type name can be ignored.
Applies to
Entity Framework Core 9.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- IConventionModelBuilder.cs
- Source:
- IConventionModelBuilder.cs
- Source:
- IConventionModelBuilder.cs
Returns a value indicating whether the given entity type can be ignored from the current configuration source.
public bool CanIgnore (Type type, bool fromDataAnnotation = false);
abstract member CanIgnore : Type * bool -> bool
Public Function CanIgnore (type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- type
- Type
The entity type to be removed from the model.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given entity type can be ignored.
Applies to
Entity Framework Core 9.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: