public GamePlayer(IDataReader idr) : this() { GameID = idr.GetValueByName<Int32>("GameID"); User = new User(idr); Points = idr.GetValueByName<Int32>("Points"); CardCount = idr.GetValueByName<Int32>("CardCount"); IdlePlayCount = idr.GetValueByName<Int32>("IdlePlayCount"); if (idr.HasColumn("Title")) { Game = new Game(idr); } PlayerType = (Enums.GamePlayerType)idr.GetValueByName<Int32>("Type"); }