System.InvalidOperationException:“No coercion operator is defined between types 'System.Int16' and '...

modelBuilder.Entity<MentItems>().Property(e=>e.IsValid)
                .HasColumnType("bit(1)")
                .HasDefaultValue(false);

 

posted @ 2021-02-01 09:59  lixia64  阅读(116)  评论(0编辑  收藏  举报