次の方法で共有


DbEntityEntry.GetDatabaseValues メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

現在データベース内に存在している追跡対象エンティティの値のコピーを検索するためにデータベースをクエリします。 返されたディクショナリ内の値を変更してもデータベース内の値は更新されないことに注意してください。 データベース内にそのエンティティが見つからない場合は null が返されます。

名前空間:  System.Data.Entity.Infrastructure
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetDatabaseValues As DbPropertyValues
'使用
Dim instance As DbEntityEntry 
Dim returnValue As DbPropertyValues 

returnValue = instance.GetDatabaseValues()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public DbPropertyValues GetDatabaseValues()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
DbPropertyValues^ GetDatabaseValues()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
member GetDatabaseValues : unit -> DbPropertyValues
public function GetDatabaseValues() : DbPropertyValues

戻り値

型 : System.Data.Entity.Infrastructure.DbPropertyValues
ストア値。

参照

参照

DbEntityEntry クラス

System.Data.Entity.Infrastructure 名前空間