用C#写个数据库实体类(每张表对应一个结构体,要注意有关系的表)?比如:
struct tab
{
    public int id;
    public string name;
    是否为空;
    哪个是主键;
    ....}
怎么写?
比如学生表和学生成绩表?