04 2013 档案

摘要:使用TransactionScope类正如名称所暗示,TransactionScope类用于限定事务代码块,其具有一些明显优点,例如范围与应用程序对象模型无关,同时提供了一个简单直观的编程模型等等。在该类的构造函数内部,TransactionScope对象创建了一个事务(.NET 2.0中默认时轻量级事务管理器),同时将该事务设置给Transaction类的Current属性。由于TransactionScope是可释放对象,所以事务将调用Dispose()方法释放该对象:using(TransactionScope scope = new TransactionScope()) { /*在这 阅读全文
posted @ 2013-04-26 13:35 Elite_Y 阅读(3912) 评论(0) 推荐(0) 编辑
摘要:Validation failedforone ormoreentities.See‘EntityValidationErrors’propertyformoredetails. Unfortunately there is no further information about关于如何查看 EntityValidationErrors 详细信息的解决方法我们在 EF 的编程中,有时候会遇到这样一个错误:但是,按照他的提示 “See 'EntityValidationErrors' property for more details.” 去 Exception 中查看,却只能 阅读全文
posted @ 2013-04-26 10:29 Elite_Y 阅读(921) 评论(0) 推荐(0) 编辑
摘要://设置控件被选中document.getElementById("id").checked=true;//设置控件不可用document.getElementById("id").disabled = true;//设置控件不可见document.getElementById("id").style.display=’none’;//设置控件可见document.getElementById("id").style.display=’block’;//设置控件获取焦点document.getElementById 阅读全文
posted @ 2013-04-25 18:57 Elite_Y 阅读(488) 评论(0) 推荐(0) 编辑
摘要:nowrap: true,onLoadSuccess: function (data) { $(this).datagrid('doCellTip', { 'max-width': '700px', 'delay': 500 }); },//更改easy ui datagrid属性 // $(this).datagrid('doCellTip', { 'max-width': '700px', 'delay': //500 }); 是easy ui datagrid扩 阅读全文
posted @ 2013-04-19 14:43 Elite_Y 阅读(2349) 评论(0) 推荐(1) 编辑
摘要:<tr> <th data-options="field:'itemid',width:80">Item ID</th> <th data-options="field:'productid',width:100,formatter:productFormatter, editor:{ type:'combobox', options:{ ... 阅读全文
posted @ 2013-04-10 10:17 Elite_Y 阅读(9928) 评论(0) 推荐(0) 编辑
摘要:{ field: 'ObtainCert', title: "是否获证", width: 50, editor: { type: 'checkbox', options: { on: 1, off: 0 ... 阅读全文
posted @ 2013-04-04 16:48 Elite_Y 阅读(8506) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示