EF 4.1 Code First: Why is EF not setting this navigation property?
Here's a sample scenario that illustrates the problem I am having. Here is the DB script to generate the database in SQL 2008: USE [master] GO /****** Object: Database [EFTesting] Script Date: 08/15/2011 09:56:33 ******/ CREATE DATABASE [EFTesting] ON PRIMARY ( NAME = N'EFTesting', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\EFTesting.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) LOG ON ( NAME = N'EFTesting_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\EFTesting_log.ldf' , SIZE = 1024KB , MAXSIZE