DbEntityValidationException.EntityValidationErrors 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得與實體相關聯的驗證錯誤。
命名空間: System.Data.Entity.Validation
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public ReadOnly Property EntityValidationErrors As IEnumerable(Of DbEntityValidationResult)
Get
'用途
Dim instance As DbEntityValidationException
Dim value As IEnumerable(Of DbEntityValidationResult)
value = instance.EntityValidationErrors
public IEnumerable<DbEntityValidationResult> EntityValidationErrors { get; }
public:
property IEnumerable<DbEntityValidationResult^>^ EntityValidationErrors {
IEnumerable<DbEntityValidationResult^>^ get ();
}
member EntityValidationErrors : IEnumerable<DbEntityValidationResult>
function get EntityValidationErrors () : IEnumerable<DbEntityValidationResult>
屬性值
類型:System.Collections.Generic.IEnumerable<DbEntityValidationResult>
與實體相關聯的驗證錯誤。