摘要: ALTER TABLE 表名 ADD 外键列 INT DEFAULT 1 ALTER TABLE 表名 ADD CONSTRAINT FK_ID FOREIGN KEY(外键列) REFERENCES 外键表(外键表主键) 阅读全文
posted @ 2019-12-02 11:23 enjoryWeb 阅读(3458) 评论(0) 推荐(0) 编辑
摘要: 问题的详细描述: Attaching an entity of type 'xxxxx' failed because another entity of the same type already has the same primary key value. This can happen wh 阅读全文
posted @ 2019-11-29 12:26 enjoryWeb 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: select * from table1 t where (select count(*) from table1 where column1=t.column1 AND column2=t.column2 and column3=t.column3)>1 阅读全文
posted @ 2019-11-22 11:30 enjoryWeb 阅读(2558) 评论(0) 推荐(0) 编辑
摘要: 时区缩写: 标准时间代码 与GMT的偏移量 描述 NZDT +13:00 新西兰夏令时 IDLE +12:00 国际日期变更线,东边 NZST +12:00 新西兰标准时间 NZT +12:00 新西兰时间 AESST +11:00 澳大利亚东部夏时制 CST(ACSST) +10:30 中澳大利亚 阅读全文
posted @ 2019-11-14 15:21 enjoryWeb 阅读(2707) 评论(0) 推荐(0) 编辑
摘要: 有一个订单类:Order,在订单Order类中有一个子类,订单详细类OrderDetail。 需求:根据订单详细类的字段过滤数据 解决方案: 阅读全文
posted @ 2019-11-13 18:22 enjoryWeb 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 鼠标右击项目->添加->服务引用->高级->添加Web引用->输入URL->点击前往 如下图所示: 阅读全文
posted @ 2019-10-11 17:15 enjoryWeb 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: private void BindDivision() { DivisionService divisionService = new DivisionService(); var divisions = divisionService.GetList(base.AdminDivisionId) .... 阅读全文
posted @ 2019-09-29 12:22 enjoryWeb 阅读(162) 评论(0) 推荐(0) 编辑
摘要: $(function () { //当为添加时,站点的设置 var isAdd =<%=ShopId%>; if (isAdd == 0) { $("#divMarket").find("input").each(function () { $(this).click(function () { v 阅读全文
posted @ 2019-09-27 21:03 enjoryWeb 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 后台API的代码: 前台JS代码: 阅读全文
posted @ 2019-09-24 17:50 enjoryWeb 阅读(152) 评论(0) 推荐(0) 编辑
摘要: if(window.plus)//判断当前的设备是手机 window.localStorage.setItem("key","value");//设置值 window.localStorage.getItem("key");//获取值 阅读全文
posted @ 2019-09-18 15:21 enjoryWeb 阅读(1229) 评论(0) 推荐(0) 编辑