Hello, guys! I got stuck with this problem and I don't know how to solve it:
My application allows players to sign up, so I have an class Player defined as
[Table("Players")]
public class Player : ApplicationUser
{
[Display(Name = "Birth date")]
public DateTime? DateBirth { get; set; }
public virtual ICollection<Playing> Playing { get; set; }
}
I want the players to be able to become Developers, eventually. A Developer would still have all Player' info, like
[Table("Developers")]
public class Developer : Player
{
public DateTime DateConverted { get; set; }
public virtual ICollection<Game> Games { get; set; }
}
But how do I actually "convert" Players to Developers? I assumed I would only have to instantiate a Developer with the same Id property as the Player 's and save it:
Go to the complete details ...