摘要: ###EntityFunctions已被弃用,被DbFunctions代替 DateTime nowtime = DateTime.Now; DbFunctions.DiffDays(b.CreateOn, nowtime) >7 阅读全文
posted @ 2020-11-06 14:27 寒风中亦温暖 阅读(429) 评论(0) 推荐(0) 编辑
摘要: var fNumber = (from a in db.BT_WMS_UnCodeStock where a.ProductNo == _Code && (status == 3 || a.InventoryQuantity > 0) group a by a.Fnumber into g sele 阅读全文
posted @ 2020-10-31 10:46 寒风中亦温暖 阅读(341) 评论(0) 推荐(0) 编辑
摘要: EXEC sp_addlinkedserver @server='servername',--被访问的服务器别名 @srvproduct='',--SqlServer默认不需要写 @provider='SQLOLEDB', --不同的库都是不一样的 @datasrc='192.168.0.1' -- 阅读全文
posted @ 2020-10-30 14:21 寒风中亦温暖 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 最近再用ABP做项目,也是第一次用.net core做实际的项目,中间遇到了各种问题,记录一下其中一个问题 在做新增时使用了core first关联表新增 在主表实体中加入明细信息 public virtual ICollection<BT_Inv_Stockin_Detail> BT_Inv_St 阅读全文
posted @ 2020-09-10 14:25 寒风中亦温暖 阅读(2607) 评论(0) 推荐(0) 编辑
摘要: 使用element-vue打包项目npm run build的时报错:npm ERR! missing script: build 在项目根目录下的package.json中发现问题所在: "scripts": { "dev": "vue-cli-service serve", "build:pro 阅读全文
posted @ 2020-08-31 11:47 寒风中亦温暖 阅读(5352) 评论(0) 推荐(0) 编辑
摘要: 最近公司准备使用ABP做项目,研究时发现在多数据库下发布会有一个“Could not find content root folder!”的错误。 问题代码在core项目下Web文件夹里的WebContentDirectoryFinder中,查遍资料还是一头雾水。 最终还是让我找到了解决方案: Co 阅读全文
posted @ 2020-08-29 15:30 寒风中亦温暖 阅读(492) 评论(0) 推荐(2) 编辑