zoukankan      html  css  js  c++  java
  • 查看Visual Studio异常内容

    If Entity Framework throws a validation exception when saving, Visual Studio reports the message,

    Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details.

    But the in-built ‘View Detail’ dialog doesn’t let you drill into the EntityValidationErrors property.

    To view the EntityValidationErrors collection, add the following Watch expression to the Watch window.

    ((System.Data.Entity.Validation.DbEntityValidationException)$exception).EntityValidationErrors

    Which displays a similar to,

    The watch expression ‘$exception’ displays any exception thrown in the current context, even if it has not been caught and assigned to a variable.

  • 相关阅读:
    discuz开发笔记
    响应式布局
    timedelta
    图片轮播
    性能
    事件捕获
    git
    css hacks
    AFNetworking 网络错误提示data转换字符串
    常见HTTP错误代码
  • 原文地址:https://www.cnblogs.com/JasonLiao/p/VisualStudioExceptionExpress.html
Copyright © 2011-2022 走看看