语言

DbEntityEntry.GetDatabaseValues 方法

定义

查询数据库,了解跟踪实体的值的副本,因为它们当前存在于数据库中。 请注意,更改返回的字典中的值不会更新数据库中的值。 如果在数据库中找不到实体,则返回 null。

public System.Data.Entity.Infrastructure.DbPropertyValues GetDatabaseValues();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public System.Data.Entity.Infrastructure.DbPropertyValues GetDatabaseValues();
member this.GetDatabaseValues : unit -> System.Data.Entity.Infrastructure.DbPropertyValues
Public Function GetDatabaseValues () As DbPropertyValues

返回

存储值。

特性

适用于