摘要: 问题的原因:插入或更新的数据中某些字段的值超过了数据库设置的字段长度。 解决方法:扩大数据库对应字段的长度 阅读全文
posted @ 2021-12-15 16:55 宝藏钥匙 阅读(623) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { List<Person> list = new List<Person> { new Person { id = 1, name = "李小龙", date = "2021-10-21" }, new 阅读全文
posted @ 2021-12-13 14:23 宝藏钥匙 阅读(744) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { List<Person> list = new List<Person> { new Person { id = 1, name = "李小龙", date = "2021-10-21" }, new 阅读全文
posted @ 2021-12-13 11:07 宝藏钥匙 阅读(4023) 评论(1) 推荐(1) 编辑
摘要: class Program { static void Main(string[] args) { List<string> ids = new List<string> { "1", "2", "3", "4", "5", "6", "7", "8" }; int count = Math.Min 阅读全文
posted @ 2021-12-13 10:54 宝藏钥匙 阅读(257) 评论(0) 推荐(1) 编辑
摘要: String '20211011' was not recognized as a valid DateTime. 阅读全文
posted @ 2021-12-13 10:48 宝藏钥匙 阅读(2195) 评论(0) 推荐(0) 编辑