随笔分类 -  Net core

Net core基本操作
摘要:直接上代码 using (var db = Context) { using (var TR = db.Database.BeginTransaction()) { try { GoodsImg model = new GoodsImg(); model.CreateTime = DateTime. 阅读全文
posted @ 2021-03-11 18:09 大洋彼岸。 阅读(316) 评论(0) 推荐(0)
摘要:appsettings.json "CorsUrls": [ "http://localhost:9527", "https://localhost:3000", ] 注册信息 var cors = Configuration.GetSection("CorsUrls").GetChildren() 阅读全文
posted @ 2020-05-11 10:30 大洋彼岸。 阅读(113) 评论(0) 推荐(0)
摘要:public ActionResult GetCourseList() { var mo = from e in gzhContext.WxCourseList.Select(m=>new { m.Id,m.Title,m.CourseName,m.Coursetype,m.StartTime, m 阅读全文
posted @ 2020-05-11 10:29 大洋彼岸。 阅读(399) 评论(0) 推荐(0)
摘要:html <label> <input type="file" @change="tirggerFile($event)" /> </label> script methods: { tirggerFile: function(event) { var self = this; var file = 阅读全文
posted @ 2020-05-11 10:23 大洋彼岸。 阅读(1006) 评论(0) 推荐(0)