コード例 #1
0
ファイル: DapperServices.cs プロジェクト: ciker/MicroORM
 public long Insert(Customer customer)
 {
     using (var cn = GetOpenConnection())
     {
         return cn.Insert<Customer>(customer);
     }
 }
コード例 #2
0
ファイル: DapperServices.cs プロジェクト: ciker/MicroORM
 public void Delete(Customer customer)
 {
     using (var cn = GetOpenConnection())
     {
         cn.Delete<Customer>(customer);
     }
 }