List<Badge> Badges = new List<Badge>();
foreach (DataRow Row in dBadges.Rows)
{
Badges.Add(new Badge(Convert.ToString(Row["badge_id"]), Convert.ToInt32(Row["badge_slot"])));
}
DataTable dGroups = null;
DataTable dBadges = null;
dbClient.SetQuery("SELECT `id`,`target`,`type` FROM user_relationships WHERE user_id=@id");
dbClient.AddParameter("id", UserId);
dRelations = dbClient.GetTable();
dbClient.SetQuery("SELECT `badge_id`,`badge_slot` FROM user_badges WHERE `user_id`=@id");
dbClient.AddParameter("id", UserId);
dBadges = dbClient.GetTable();
List<Badge> Badges = new List<Badge>();
foreach (DataRow Row in dBadges.Rows)
{
Badges.Add(new Badge(Convert.ToString(Row["badge_id"]), Convert.ToInt32(Row["badge_slot"])));
}