one-to-one relationships in Entity Framework 4 v2 with POCO
问题 I've been looking for an example about how to build an one-to-one relationship in EF4v2 with POCO's. I found a lot of examples that show only how to create one-to-many or many-to-many. Do you have any resource about it? 回答1: This worked for me. using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using System.Linq; class Program { static void Main