So I have done a bunch of work in EF4 beta 1 with POCO classes.
However, after updating to EF4 beta 2 I updated my edmx from the database and found that it is now requiring me to have additional properties in my poco classes.
For example:
Table User:
ID int, primary key, identity(1,1)
Username nvarchar(20), not null
PersonID int, foreign key to person table
Table Person
ID int, primary key, identity(1,1)
Name nvarchar(50), not null
In my poco classes I am now required to have:
public class User
{
public int ID { get; set; }
public string Username { get; set; }
public Person { get; set; }
public int PersonID { get; set; }
}
Why am I now required to have the PersonID property?
Any help would be much appreciated!
Thanks,
Mike