示例#1
0
 /// <summary>
 /// Count
 /// </summary>
 /// <returns></returns>
 public int Count()
 {
     return(LiteDBHelper <ProxyHero.Entity.Plugin> .Count(TABLE_NAME));
 }
示例#2
0
 /// <summary>
 /// Delete
 /// </summary>
 /// <param name="docId"></param>
 /// <returns></returns>
 public bool Delete(int docId)
 {
     return(LiteDBHelper <ProxyHero.Entity.Plugin> .Delete(docId, TABLE_NAME));
 }
示例#3
0
 /// <summary>
 /// Find all list
 /// </summary>
 /// <returns></returns>
 public IEnumerable <ProxyHero.Entity.Plugin> FindAll()
 {
     return(LiteDBHelper <ProxyHero.Entity.Plugin> .FindAll(TABLE_NAME));
 }
示例#4
0
        static string TABLE_NAME = "Plugins"; //table name

        /// <summary>
        /// Insert
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Insert(ProxyHero.Entity.Plugin model)
        {
            return(LiteDBHelper <ProxyHero.Entity.Plugin> .Insert(model, TABLE_NAME));
        }
示例#5
0
 /// <summary>
 /// Update
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Update(ProxyHero.Entity.Plugin model)
 {
     return(LiteDBHelper <ProxyHero.Entity.Plugin> .Update(model, TABLE_NAME));
 }
示例#6
0
 /// <summary>
 /// Find all list
 /// </summary>
 /// <returns></returns>
 public IEnumerable <Setting> FindAll()
 {
     return(LiteDBHelper <Setting> .FindAll(TABLE_NAME));
 }
示例#7
0
 /// <summary>
 /// Count
 /// </summary>
 /// <returns></returns>
 public int Count()
 {
     return(LiteDBHelper <Setting> .Count(TABLE_NAME));
 }
示例#8
0
 /// <summary>
 /// Query one model
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public Setting FindOne(Query query)
 {
     return(LiteDBHelper <Setting> .FindOne(query, TABLE_NAME));
 }
示例#9
0
 /// <summary>
 /// Delete
 /// </summary>
 /// <param name="docId"></param>
 /// <returns></returns>
 public bool Delete(int docId)
 {
     return(LiteDBHelper <Setting> .Delete(docId, TABLE_NAME));
 }
示例#10
0
        /// <summary>
        /// Exists
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>

        public bool Exists(Query query)
        {
            return(LiteDBHelper <Setting> .Exists(query, TABLE_NAME));
        }
示例#11
0
 /// <summary>
 /// Update
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Update(Setting model)
 {
     return(LiteDBHelper <Setting> .Update(model, TABLE_NAME));
 }
示例#12
0
        static string TABLE_NAME = "Settings"; //table name

        /// <summary>
        /// Insert
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Insert(Setting model)
        {
            return(LiteDBHelper <Setting> .Insert(model, TABLE_NAME));
        }