Esempio n. 1
0
 static void testInsertRawQuery()
 {
     using (var conn = IduConnection.Create())
     {
         string ssql = @"INSERT INTO ""Tm_Master01"" (""Description"") VALUES (:p0)";
         conn.Execute(ssql, new { p0 = "test insert dari raw query" });
     }
 }
Esempio n. 2
0
 static void testDeleteWithContrib()
 {
     using (var conn = IduConnection.Create())
     {
         var entity = conn.Get <Tm_Master01>(2);
         conn.Delete <Tm_Master01>(entity);
     }
 }
Esempio n. 3
0
 static void testUpdateWithContrib()
 {
     using (var conn = IduConnection.Create())
     {
         var entity = conn.Get <Tm_Master01>(2);
         entity.Description = "test dari dapper update - Contrib";
         conn.Update(entity);
     }
 }
Esempio n. 4
0
 static void testInsertWithContrib()
 {
     using (var conn = IduConnection.Create())
     {
         var entity = new Tm_Master01();
         entity.Description = "test insert dari dapper - Contrib";
         conn.Insert(entity);
     }
 }