예제 #1
0
 public int Insert(QueryBase query)
 {
     using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters))
     {
         return(conn.ExecuteInsert());
     }
 }
예제 #2
0
 public void Delete(QueryBase query)
 {
     using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters))
     {
         conn.ExecuteNonQuery();
     }
 }
예제 #3
0
 public DataTable Select(QueryBase query)
 {
     using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters))
     {
         return(conn.ExecuteCommand());
     }
 }