Domanda

I am having some problems with a datarow - all of the data is not showing?

I have this in file:

this.friendData = DatabaseClient.ReadDataTable("SELECT users.Id,users.username,users.motto,users.look,users.last_online FROM users JOIN friendships ON users.Id = friendships.user_two_id WHERE friendships.user_one_id = '" + num + "'");

and then another file this:

DataRow[] DataRow_ = Session.GetUser().Data.friendData.Select("id = 8");

and when i try this:

Console.WriteLine(DataRow_[0]["username"]);

It print this: "gassu" but my username is "TestAccount"

È stato utile?

Soluzione

Try this:

Console.WriteLine(DataRow_[0]["username"]);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top