Esempio n. 1
0
 public long Insert(Customer customer)
 {
     using (var cn = GetOpenConnection())
     {
         return cn.Insert<Customer>(customer);
     }
 }
Esempio n. 2
0
 public void Delete(Customer customer)
 {
     using (var cn = GetOpenConnection())
     {
         cn.Delete<Customer>(customer);
     }
 }