摘要: 1 public class ModelConvertHelper<T> where T : new() // 此处一定要加上new() 2 { 3 4 public static IList<T> ConvertToModel(DataTable dt) 5 { 6 7 IList<T> ts = 阅读全文
posted @ 2020-05-21 15:17 Vaynedy 阅读(451) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE [dbo].[M_CreateInventoryCk] AS DECLARE @tran_error INT;--记录错误数量 DECLARE @cursor CURSOR --游标 BEGIN SET @cursor=cursor for select Logis 阅读全文
posted @ 2020-05-21 15:16 Vaynedy 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 事件冒泡: 例如这样一个结构 :<li><a></a></li>, 假如你在a标签上绑定了一个点击click事件,如:$("a").click(function(){alert("a"); }); 还在li标签上绑定了一个事件,如:$("li").click(function(){alert("li 阅读全文
posted @ 2020-05-21 15:14 Vaynedy 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 直接借助数据库引擎读取。Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties='Text;HDR=NO';Data Source=yourfile.csv 阅读全文
posted @ 2020-05-21 15:10 Vaynedy 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-21 15:09 Vaynedy 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 测试表中有六百五十八万九千多条数据 ID:主键 UUID:非聚集索引 数据量: 1. select COUNT(*) from [Chapter] 2. select COUNT(ID) from [Chapter] 3. select COUNT(UUID) from [Chapter] 4. s 阅读全文
posted @ 2020-05-21 15:08 Vaynedy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: declare @error int set @error=0 declare @temp varchar(50) -- 保存游标查询出的字段 --定义游标 declare cursor_1 cursor for (select 字段 from 表名) --打开游标-- open cursor_1 阅读全文
posted @ 2020-05-21 15:00 Vaynedy 阅读(146) 评论(0) 推荐(0) 编辑