ModelConfigurationBuilder.IgnoreAny 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
IgnoreAny(Type) |
Prevents the conventions from the given type from discovering properties of the given or derived types. |
IgnoreAny<T>() |
Prevents the conventions from the given type from discovering properties of the given or derived types. |
IgnoreAny(Type)
Prevents the conventions from the given type from discovering properties of the given or derived types.
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder IgnoreAny (Type type);
abstract member IgnoreAny : Type -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.IgnoreAny : Type -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function IgnoreAny (type As Type) As ModelConfigurationBuilder
Parameters
- type
- Type
The type to be ignored.
Returns
The same ModelConfigurationBuilder instance so that additional configuration calls can be chained.
Remarks
See Pre-convention model building in EF Core for more information and examples.
Applies to
IgnoreAny<T>()
Prevents the conventions from the given type from discovering properties of the given or derived types.
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder IgnoreAny<T> ();
abstract member IgnoreAny : unit -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.IgnoreAny : unit -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function IgnoreAny(Of T) () As ModelConfigurationBuilder
Type Parameters
- T
The type to be ignored.
Returns
The same ModelConfigurationBuilder instance so that additional configuration calls can be chained.
Remarks
See Pre-convention model building in EF Core for more information and examples.
Applies to
Entity Framework