none
Code First Approach in Entity Frame work RRS feed

  • General discussion

  •  public class Country
       {
           public int CountryId { get; set; }
           public string CountryName { get; set; }

    public virtual City CtyId{get;set;}

    }

    public class City
        {
           public int CityId{get;set;}
           public string CityName { get; set; }
           public  Country CountryPostalCode{get;set;}

    }

    when i make 1 to 1 associations betweent these 2 entities it generates an error Message please solve this problem

    Wednesday, November 21, 2012 5:28 PM

All replies

  • What is the error message that you are seeing?


    We are seeing a lot of great Entity Framework questions (and answers) from the community on Stack Overflow. As a result, our team is going to spend more time reading and answering questions posted on Stack Overflow. We would encourage you to post questions on Stack Overflow using the entity-framework tag. We will also continue to monitor the Entity Framework forum.

    Wednesday, November 21, 2012 10:46 PM
    Moderator