摘要: 1、添加事务 添加引用System.Trasactions 代码: using (TransactionScope tran = new TransactionScope()) { .................... tran.Complete(); } 2、错误的关联数据创建 在项目中有Product和ProductAttribue两个表,Product和ProductAttribue是一对... 阅读全文
posted @ 2013-12-30 16:25 小飞的DD 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1、添加主键自增 2、从数据库到CDM 通过数据库生成脚本 从Power Desinger 反向生成PDM 打开刚才的脚本 从PDM到CDM 阅读全文
posted @ 2013-12-30 16:25 小飞的DD 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1、try catch 2、Application_Error 将如下代码添加到Global.asax下 protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); HttpException httpException = ex as HttpException; Response.Clear(); Server.Cl... 阅读全文
posted @ 2013-12-30 10:39 小飞的DD 阅读(194) 评论(0) 推荐(0) 编辑