I m new about this topic (code first development). I want to do relationship between asp.net default User table and my class (one-to-one).
- Is this possible.
- if this is possible.How I can do it.Should I write User class, too? or any way.
Could you give me a starting point? My class is like below.
public class Customer
{
[Key]
public int customer_id { get; set; }
public string customer_name{ get; set; }
public string user_id
public virtual User User{ get; set; }
}
I hope, I have explained :)
Thanks.