IdKeyDiscoveryConvention.MatchKeyProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重写时返回将成为主键一部分的属性子集。
protected override System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> MatchKeyProperty(System.Data.Entity.Core.Metadata.Edm.EntityType entityType, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> primitiveProperties);
override this.MatchKeyProperty : System.Data.Entity.Core.Metadata.Edm.EntityType * seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty> -> seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty>
参数
- entityType
- EntityType
实体类型。
- primitiveProperties
- IEnumerable<EdmProperty>
实体的基元类型
返回
应是主键一部分的属性。