2008年9月17日

TableAdapter配合TransactionScope使用时一个容易忽略的地方

摘要: 场景如下 在数据库中创建Category和Item记录 Category , Primary Key : CategoryID Item, Primary Key : ItemID ,Foreign Key : CategoryID 使用ADO.NET 2.0 提供的TableAdapeter机制来创建Category和Item Code Code highlighting prod... 阅读全文

posted @ 2008-09-17 17:38 RockingEgg(滚蛋) 阅读(378) 评论(0) 推荐(0)

DetailView操作报错方法

摘要: 比如DetailView我绑定了一个Insert操作,但是可能抛错,我要在哪里截获这个错误并进行错误提示 1、如果你想在代码级别用try catch 的方式来截获 那是没有的 因为根本没有代码 2、方式a:采用事件方式 DetailView的ItemInserted事件处理 Code highlighting produced by Actipro CodeHighlighter ... 阅读全文

posted @ 2008-09-17 09:33 RockingEgg(滚蛋) 阅读(256) 评论(0) 推荐(0)

导航