小编Max*_*ius的帖子

如何在 Xamarin.Forms 中使用 SQLite-net-plc 中的“.OrderBy”?

我想对保存在 SQLite 数据库中的日历条目进行排序,以便在列表视图中显示它们。如何使用 SQLite-net-plc 订购它们?

我以为我可以写:.OrderBy<CalendarEntryStartDate>但它不起作用,我尝试使用 SQLite 命令,但在使用它们时遇到了一些麻烦,因为我对 m.db 感到困惑。

using System;
using SQLite;

namespace Stundenplan.Models
{
    public class CalendarEntry
    {
        [PrimaryKey, AutoIncrement]
        public int CalendarEntryId { get; set; }
        public string CalendarEntryTitle { get; set; }
        public string CalendarEntryDescription { get; set; }
        [Column("StatDate")]
        public DateTime CalendarEntryStartDate { get; set; }
        public DateTime CalendarEntryEndDate { get; set; }
        public TimeSpan CalendarEntrySpan { get; set; }
        public string CalendarEntryParticipants { get; set; }
        public string CalendarEntrytLocation { get; …
Run Code Online (Sandbox Code Playgroud)

c# sqlite xamarin.forms sqlite-net-pcl

1
推荐指数
1
解决办法
2517
查看次数

标签 统计

c# ×1

sqlite ×1

sqlite-net-pcl ×1

xamarin.forms ×1