ASP.Net MVC 4 scaffolding complex types

aaaseotonsslly

New Member
I have a very complex model. I want to create Create, edit, list, etc. forms for it. The class contains many objects from other classes. For example in the "create" form, I want a form which is able to get the data for all the classes and fill the necessary tables. How can I achieve that? A sample of my class would be something like this:\[code\]public class BuildingPermit{ [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int ID { get; set; } public Permit PermitInfo { get; set; } public DateTime RegisteredDate { get; set; } public int RealStateID { get; set; } public virtual Person Owner{ get; set; }}\[/code\]When I use the "Scaffolding", the classes like \[code\]Person\[/code\] or \[code\]Permit\[/code\] above are getting ignored and I get fields for system types only.
 
Top