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"

有帮助吗?

解决方案

Try this:

Console.WriteLine(DataRow_[0]["username"]);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top