c#
六月雨的皮卡丘
我是小白啊,能不能把技术内容写得简单易懂一点 ?
展开
-
【2021-04-16】The following constructors had parameters that could not be bound to properties
System.InvalidOperationException HResult=0x80131509 Message=Nosuitable constructor was found for entity type ‘Movie’. The followingconstructors had parameters that could not be bound to properties ofthe entity type: cannot bind ‘dierctory’ in ‘Movi.原创 2021-04-16 18:05:05 · 799 阅读 · 0 评论 -
【2021-04-11】VS2019添加新建项,没有 ADO.NET实体数据模型
参考msdn社区解决办法.Net Core项目、.Net Standard项目无法添加,要新建一个.Net Framework项目!原创 2021-04-11 17:28:33 · 4531 阅读 · 3 评论 -
【2021-03-17】The entity type ‘Video‘ is part of a hierarchy, but does not have a discriminator value
问题初始化数据库失败,错误部分源代码如下:protected override void OnModelCreating(ModelBuilder modelBuilder){ // Movie、Tv一起放在Video表中,以Type属性区分; modelBuilder.Entity<Video>().HasDiscriminator<VideoType>("Type") .HasValue<原创 2021-03-17 18:07:06 · 184 阅读 · 2 评论 -
【2019-08-19】C#裁剪切割图片并保存到本地
刚学习C#,萌新追求快速入门,如果注释有不当之处,请指教。DrawImage有一堆的重载函数,看微软.NET Framework 4.8的文档,心态爆炸。1、强行理解了一波,代码:命名空间:using System.Drawing;函数中内容:Bitmap src_jpg = new Bitmap("pikachu.jpg"); //读入原图...原创 2019-08-19 16:33:17 · 1324 阅读 · 1 评论 -
【2020-12-18】C# 获取文件夹下包括子文件夹下的所有文件路径 递归
参考别人的,但实在找不到原文章地址了,代码:// path是文件夹路径,FileList是存放文件搜索结果的列表public List<string> GetFiles(string path, List<string> FileList) { string filename; DirectoryInfo ...原创 2020-12-18 16:57:19 · 4974 阅读 · 2 评论