webapi DbContext DbSet null 警告解决
摘要:给 DbSet 一个默认空值来解决。 那么,需不需要判断表是否存在呢? 答案是不需要。因为一般来说,数据库表肯定是有的。 public class NullableReferenceTypesContext : DbContext { public DbSet<Customer> Customers
阅读全文
posted @ 2023-03-04 18:27
posted @ 2023-03-04 18:27