DbModelBuilder.Ignore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Ignore(IEnumerable<Type>) |
从模型中排除指定的类型 () 。 这用于从模型中删除在初始模型发现期间按约定添加的类型。 |
Ignore<T>() |
从模型中排除类型。 这用于从模型中删除在初始模型发现期间按约定添加的类型。 |
Ignore(IEnumerable<Type>)
从模型中排除指定的类型 () 。 这用于从模型中删除在初始模型发现期间按约定添加的类型。
public virtual System.Data.Entity.DbModelBuilder Ignore (System.Collections.Generic.IEnumerable<Type> types);
abstract member Ignore : seq<Type> -> System.Data.Entity.DbModelBuilder
override this.Ignore : seq<Type> -> System.Data.Entity.DbModelBuilder
Public Overridable Function Ignore (types As IEnumerable(Of Type)) As DbModelBuilder
参数
- types
- IEnumerable<Type>
要从模型中排除的类型。
返回
相同的 DbModelBuilder 实例,以便可以链接多个调用。
适用于
Ignore<T>()
从模型中排除类型。 这用于从模型中删除在初始模型发现期间按约定添加的类型。
public virtual System.Data.Entity.DbModelBuilder Ignore<T> () where T : class;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public virtual System.Data.Entity.DbModelBuilder Ignore<T> () where T : class;
abstract member Ignore : unit -> System.Data.Entity.DbModelBuilder (requires 'T : null)
override this.Ignore : unit -> System.Data.Entity.DbModelBuilder (requires 'T : null)
Public Overridable Function Ignore(Of T As Class) () As DbModelBuilder
类型参数
- T
要排除的类型。
返回
相同的 DbModelBuilder 实例,以便可以链接多个调用。
- 属性