c# - ASP .NET Scaffolding ignoring list data structures? -


i'm trying learn asp .net creating sample website, , have problem. suppose have following classes:

public class player {     public string name {get; set;}     public int age {get; set;}     public double salary {get; set;}     public string gender {get; set;}     public datetime contractsigndate {get; set;} }  public class team {     public string teamname {get; set;}     public string sportplayed {get; set;}     public list<player> players {get; set;} } 

now if try use scaffolding in vs2013 create controller , crud pages around model team, pages have fields teamname , sportplayed. players list control not catered for. ideally speaking, when i'm creating new team, i'd way define new players , add them team well. can either through player addition controls on team create page, or maybe button such 'manage players' when clicked, opens small popup players can added. how can achieved while using scaffolding ?

you fix using partial view can use scaffolding(create template) create new player.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -