摘要:
System.InvalidOperationException:“An exception occurred while reading a database value for property 'Banner.CreateUser'. The expected type was 'System.Int64' but the actual value was null.” 阅读全文
摘要:
问题 原因 NewsContext.cs Startup.cs 该错误表示,如果通过AddDbContext配置NewsContext,那么需要添加一个DbContextOptions<NewsContext>类型参数的构造函数到NewsContext类。否则.net core 不能注入时带上Add 阅读全文