I am using EF 4 to retrieve a list of Employees.
public ContentResult AutoCompleteResult(string searchText)
{
List list = Employee.GetAll
I prefer to just load up a fat instance declared outside of the using
Customer _custObj;
using (RazorOne rz1 = new RazorOne())
{
_custObj = rz1.Customers.FirstOrDefault(); // .Include = Lazy loading
// Versus Implicit Load
_custObj.AddressReference.Load();
_custObj.Address1Reference.Load();
}
Then I can pass her onto the View or whatever helper really wanted her..