Esempio n. 1
0
        public static List <Bookmark> GetAll()
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

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

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

            return(db.Fetch <Bookmark>(x => x.BookmarkType == bookmarkType));
        }
Esempio n. 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));
        }
Esempio n. 5
0
        public static bool Delete(Feed feedGroup)
        {
            var db = HohoemaLiteDb.GetLocalLiteRepository();

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