本人业余学习C#,参考网上课程写程序,遇到下面问题,如有帮忙解答疑惑,不胜感激!
创建实体类有11个属性:
```public class Book
{
public int BookId { get; set; }
public string BarCode { get; set; }
public string BookName { get; set; }
public string Author { get; set; }
public int PublisherId { get; set; }
public DateTime PublishDate { get; set; }
public int BookCategory { get; set; }
public double UnitPrice { get; set; }
public string BookImage { get; set; }
public int BookCount { get; set; }
public int Remainder { get; set; }
}
如把后面几个写到前面,就正常,而此时原来写在前面的几个又报警同样信息。

