与ADO.NET和Mysql的关系

与ADO.NET和Mysql的关系,mysql,asp.net-mvc,ado.net,Mysql,Asp.net Mvc,Ado.net,在数据库中我有两个表,一个学生和另一个学生地址。他们有一对一的关系(1:1) 当我使用ado.net和数据库中的EF Designer时,VisualStudio将这种关系理解为一对多(1:n) 实体学生,代码: public partial class student { public student() { this.studentadress = new HashSet<studentadress>();

在数据库中我有两个表,一个学生和另一个学生地址。他们有一对一的关系(1:1)

当我使用ado.net和数据库中的EF Designer时,VisualStudio将这种关系理解为一对多(1:n)

实体学生,代码:

public partial class student
    {
        public student()
        {
            this.studentadress = new HashSet<studentadress>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Age { get; set; }

        public virtual ICollection<studentadress> studentadress { get; set; }
    }
公立部分班学生
{
公立学生()
{
this.studentAddress=new HashSet();
}
公共int Id{get;set;}
公共字符串名称{get;set;}
公共字符串年龄{get;set;}
公共虚拟ICollection studentAddress{get;set;}
}
我如何让他理解并维持(1:1)的关系。并且不在实体中创建集合属性,而是创建对象属性