第一次使用Entity Framework 的CodeFirst 做了这么久的.NET MVC 却没有一次真正的使用Entity Framework ,要么就是看教程上的内容,照着做,今天终于自己试了一下 用的是Code First模式,创建好实体类,设置好连接字符串,写好继承自DbContext的 ...
分类:
其他好文 时间:
2020-01-15 19:40:54
阅读次数:
61
[]error: entityList must not be empty com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: entityList must not be empty at com.baomid ...
分类:
其他好文 时间:
2020-01-15 19:20:45
阅读次数:
201
条件查询 XmlDocument xml = new XmlDocument(); string strUrl = System.Web.HttpContext.Current.Server.MapPath("/Content/ModelFolder/Translation.xml"); xml.L ...
分类:
其他好文 时间:
2020-01-15 12:09:26
阅读次数:
72
环境: MacOS + IntelliJ IDEA 2019.3.1 (Ultimate Edition) 1、创建存放项目的文件夹 2、创建pom.xml 3、创建存放源码文件的文件夹 选择cats 右键 选择java文件夹 4、创建存放资源文件的文件夹 选择cats 右键 选择resources ...
分类:
编程语言 时间:
2020-01-14 16:33:53
阅读次数:
110
环境: MacOS + IntelliJ IDEA 2019.3.1 (Ultimate Edition) 基于 "Java Web项目单体架构" ,创建登录模块。 开发顺序: 1、 entity 实体类 2、dao 数据访问层 3、service 业务逻辑 4、view 视图层 开发示例: 1、在 ...
分类:
编程语言 时间:
2020-01-14 16:23:29
阅读次数:
88
根据官网给的https://aspnetboilerplate.com/Pages/Articles/Introduction-With-AspNet-Core-And-Entity-Framework-Core-Part-1/index.html和https://aspnetboilerplate ...
分类:
移动开发 时间:
2020-01-14 11:37:16
阅读次数:
188
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.... ...
分类:
其他好文 时间:
2020-01-13 21:30:47
阅读次数:
69
程序中为了计算使用时间,通常Stopwatchshi'y Stopwatch watch = Stopwatch.StartNew(); using (RetailEntities context = new RetailEntities()) { foreach (var entity in cu ...
分类:
其他好文 时间:
2020-01-13 16:01:46
阅读次数:
94
最近需要写一些winfrom与端口交互的代码,需要的自取哦! using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using Syst ...
作者:zhanglinblog 来源:https://urlify.cn/FnYBbu 这个问题几乎面试的时候都会问到,是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎。 关于get和post如果你有条件上百度的话,至少有200百万条 ...
分类:
其他好文 时间:
2020-01-12 21:47:06
阅读次数:
59