CoreStrings.SeedDatumNavigation(Object, Object, Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
无法添加实体类型“{entityType}”的种子实体,因为它设置了导航“{navigation}”。 若要设定关系种子,请将实体种子添加到“{relatedEntityType}”,并指定外键值 {foreignKeyProperties}。 请考虑使用“DbContextOptionsBuilder.EnableSensitiveDataLogging”查看所涉及的属性值。
public static string SeedDatumNavigation (object entityType, object navigation, object relatedEntityType, object foreignKeyProperties);
public static string SeedDatumNavigation (object? entityType, object? navigation, object? relatedEntityType, object? foreignKeyProperties);
static member SeedDatumNavigation : obj * obj * obj * obj -> string
Public Shared Function SeedDatumNavigation (entityType As Object, navigation As Object, relatedEntityType As Object, foreignKeyProperties As Object) As String
参数
- entityType
- Object
- navigation
- Object
- relatedEntityType
- Object
- foreignKeyProperties
- Object