示例#1
0
        public static List <Bookmark> GetAll()
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

            return(db.Fetch <Bookmark>());
        }
示例#2
0
        public static bool Remove(Bookmark bookmark)
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

            return(db.Delete <Bookmark>(bookmark.Id));
        }
示例#3
0
        public static List <Bookmark> GetAll(BookmarkType bookmarkType)
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

            return(db.Fetch <Bookmark>(x => x.BookmarkType == bookmarkType));
        }
示例#4
0
        public static Bookmark Get(BookmarkType bookmarkType, string content)
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

            return(db.SingleOrDefault <Bookmark>(x => x.BookmarkType == bookmarkType && x.Content == content));
        }
示例#5
0
文件: FeedDb.cs 项目: TaoziDB/Hohoema
        public static bool Delete(Feed feedGroup)
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

            return(db.Delete <Feed>(feedGroup.Id));
        }