摘要: DWZ 中 服务器端响应 Ajax表单提交后服务器端需要返回以下json代码: { "statusCode":"200", "message":"操作成功", "navTabId":"", "rel":"", "callbackType":"closeCurrent", "forwardUrl":"... 阅读全文
posted @ 2012-12-25 18:25 张保维 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 我们既要使用 EF 生成的Model,然而我们又不想在 UI 层上使用 DbContext,所以我们在生成 EF Entity 的时候 将 Entity Container 访问设置 为 internal , 这样就可以将 context进行隐藏, 如果使用 Code First 的时候 ,我们就将 context.tt 中的 public clas... 阅读全文
posted @ 2012-12-25 11:31 张保维 阅读(420) 评论(0) 推荐(0) 编辑
摘要: <add name="MVCWebContext" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=MVCWebContext-20121224135911; Integrated Security=True; MultipleActiveResultSets=True; AttachDbFilename=|DataDi... 阅读全文
posted @ 2012-12-25 11:15 张保维 阅读(161) 评论(0) 推荐(0) 编辑