在代码声明了几个字段为集合类型,编译后数据库建立起来了但是在数据中却看不到这几个字段呢?我想声明SingAnswer,MulAnswer,DisAnswer为集合类型该怎么做?
1 public partial class Papers 2 { 3 [Key] 4 [DatabaseGenerated(DatabaseGeneratedOption.Identity)] 5 public int id { get; set; } 6 7 public ICollection<int> SingleAnswer { get; set; } 8 9 public ICollection<int> MulAnswer { get; set; } 10 public ICollection<int> DisAnswer { get; set; } 11 public int singANswer { get; set; } 12 }