c# - ASP.Net MVC 4 scaffolding complex types -
i have complex model. want create create, edit, list, etc. forms it. class contains many objects other classes. example in "create" form, want form able data classes , fill necessary tables. how can achieve that? sample of class this:
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; } }
when use "scaffolding", classes person
or permit
above getting ignored , fields system types only.
Comments
Post a Comment