I am struggling with an issue in model first approach, their will be main complex type which contains Name,Address,Email,Phoneno which is the parent class. And I should create second complex which will be child class having the first complex type with different name and list of first complex type.
Class Employee
{
public string Name{get;set;}
public string Address {get;set;}
public string Email{get;set;}
public string Phoneno {get;set;}
}
Class Organisation:Employee
{
public Employee Manager{get;set;}
public List
}
I want to create a Complex type in the above format in model browser.


Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 17, 2013, 8:42 PM EDT
hi,
Please refer below link it contain model first approch with complex model entity
http://weblogs.asp.net/scottgu/archive/2010/12/08/announcing-entity-framework-code-first-ctp5-release.aspx
hope this will help you.
Santosh Kumar127 reputationPosted Oct 17, 2013, 9:05 PM EDT