Example #1
0
 public async static Task Update(DBFuncItem funcItem)
 {
     using (var connection = await CreateConnection())
     {
         connection.Update(funcItem, typeof(DBFuncItem));
     }
 }
Example #2
0
 public async static Task Add(DBFuncItem funcitem)
 {
     using (var connection = await CreateConnection())
     {
         connection.Insert(funcitem, typeof(DBFuncItem));
     }
 }
Example #3
0
 public async static Task Delete(DBFuncItem funcitem)
 {
     using (var connection = await CreateConnection())
     {
         connection.Delete <DBFuncItem>(funcitem.Id);
     }
 }
Example #4
0
 public async static Task <bool> IsExist(DBFuncItem funcitem)
 {
     using (var connection = await CreateConnection())
     {
         return(connection.Table <DBFuncItem>().Any(x => x.Id == funcitem.Id));
     }
 }