public void AddClient(Cliente client) { try { _Conn = GetSqlConneciont(); _Conn.Open(); var strInsert = DMLGenerator.CreateInsertStatement(client); var clientes = _Conn.Execute(strInsert, client); } catch (Exception e) { throw e; } }
public void DeleteClient(int id) { try { _Conn = GetSqlConneciont(); _Conn.Open(); Dictionary <string, string> whereClause = new Dictionary <string, string>(); whereClause.Add("id", id.ToString()); var strUpdate = DMLGenerator.CreateDeleteStatement(new Cliente(), whereClause); _Conn.Execute(strUpdate); } catch (Exception ex) { throw ex; } }