TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yan cus
NA
124
2.9k
How load and view first item from xamarin sql database in C#
Jan 28 2021 8:01 AM
I use helper code below to get the first ID from MyTable but an error. How should this code be made accessible?
public
Task<MyTable> GetLastTableItem(
int
id)
{
return
_db.Table<MyTable>().Where(i => i.ID == id).FirstOrDefaultAsync();
}
Then I want to display it in label. How should this be made?
void
GetLastItem(
object
sender, EventArgs e)
{
Label label =
new
Label();
label.Text = bla
''
bla
''
bla.GetLastTableItem();
}
Reply
Answers (
3
)
print current record in crystal report without print preview
C# equivalent of Python's struct.pack and sum?