예제 #1
0
 public void Add(SwatchSqlite obj)
 {
     lock (locker)
     {
         using (var connection = GetConnection())
         {
             var item = GetXidRollo(obj.idrollo);
             if (item == null)
             {
                 connection.Insert(obj);
             }
         }
     }
 }
예제 #2
0
 public void UpdateStatus(SwatchSqlite obj)
 {
     lock (locker)
     {
         using (var connection = GetConnection())
         {
             var item = GetXidRollo(obj.idrollo);
             if (item == null)
             {
                 connection.Insert(obj);
             }
             else
             {
                 connection.Update(item);
             }
         }
     }
 }