上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: SQL Server中创建索引时,有2个比较特殊的关键字: where 、include。 (1)什么是条件索引呢? where顾名思义,就和sql语句中的where是一个意思,起到过滤作用。 加上where子句,创建的索引就是条件索引,索引中只包含满足条件的数据,这样会使得索引的体积更小,不管是索 阅读全文
posted @ 2020-04-11 21:29 咖啡无眠 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、去重获取单列数据的列表 1) 使用Distinct()方法 db.PageInfos.Select(p => p.Type).Distinct().ToList(); 2)使用GroupBy()方法 db.PageInfos.GroupBy(p => p.Type).Select(p=>p.Ke 阅读全文
posted @ 2020-04-11 09:40 咖啡无眠 阅读(5389) 评论(0) 推荐(0) 编辑
摘要: 1)单个字段Group by: //a.Key类型与a.Province字段类型一样 .GroupBy(a => a.Province).Select(a => a.Key).ToList(); 2)多个字段Group by: //此时返回的数据列表需要自己转换 .GroupBy(a => new  阅读全文
posted @ 2020-04-11 09:26 咖啡无眠 阅读(1853) 评论(0) 推荐(0) 编辑
摘要: var rand = (min,max) => Math.round(Math.random()*(max-min))+min;document.write(rand(2,99)); 0 <= Math.random() <1 0 <= Math.random()*(b-a) < b-a a <= 阅读全文
posted @ 2020-04-10 16:03 咖啡无眠 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function(fmt){ var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours(), //小时 "m+" : this.ge 阅读全文
posted @ 2020-04-10 15:41 咖啡无眠 阅读(421) 评论(0) 推荐(0) 编辑
摘要: --select * from TGridColumn where GridID='GridOrderItem-FNR299' declare @GridID nvarchar(50) --GridID set @GridID='GridOrderItem-FNR310' update TGridC 阅读全文
posted @ 2020-04-10 08:26 咖啡无眠 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 数据库: F_GetEnumName select dbo.F_GetEnumName('UFIDA.U9.MO.Enums.MOStateEnum',2,'zh-cn') 打印获取枚举名称请使用函数GetEnumName,GetEnumName('UFIDA.U9.Base.Doc.Busines 阅读全文
posted @ 2020-04-08 14:33 咖啡无眠 阅读(430) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 技术变更打印模板 /// </summary> /// <param name="OrderID">订单主键</param> /// <returns></returns> [CheckPower(ISPower = false, Name = "缺件打印模板") 阅读全文
posted @ 2020-04-07 08:48 咖啡无眠 阅读(322) 评论(0) 推荐(0) 编辑
摘要: /// <summary> ///创建人:蒋云峰 ///日 期:2019/12/23 ///描 述:更新实体,与数据库实体进行对比 /// </summary> public class JyfUpdateModel { /// <summary> /// 当dataBaseObj与newObj具有 阅读全文
posted @ 2020-03-31 19:57 咖啡无眠 阅读(273) 评论(0) 推荐(0) 编辑
摘要: select dt . DisplayName as [类显示名] ,a .id as [字段定义 Base_DescFlexSegment_ID] ,a .Number as [段号] ,at. Name as [段名称] ,b. id as [Base_DescFlexContext_ID 上下 阅读全文
posted @ 2020-03-30 18:56 咖啡无眠 阅读(522) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页