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

            modelBuilder.Entity<MentItems>().Property(e=>e.IsValid)
                .HasColumnType("bit(1)")
                .HasDefaultValue(false);
原文地址:https://www.cnblogs.com/siyunianhua/p/11505958.html