public void Inserir(IMovimentoSaidaItemEntity saidaItem) { DataTable dt = new DataTable(); String insSQL = "INSERT INTO MOVIMENTOSAIDAITEM(" + " IDMOVIMENTOSAIDA," + " IDITEM," + " IDDEPOSITO," + " QUANTIDADE) values (" + "" + saidaItem.IdMovimentoSaida + "," + "'" + saidaItem.IdItem + "'," + "'" + saidaItem.IdDeposito + "'," + "'" + saidaItem.QtdTotal + "'" + ");"; String strConn = conec; SQLiteConnection conn = new SQLiteConnection(conec); conn.Open(); SQLiteCommand sqlComm = new SQLiteCommand(insSQL, conn); sqlComm.ExecuteNonQuery(); conn.Close(); conn.Dispose(); }
public static void Inserir(IMovimentoSaidaItemEntity saidaItem) { MovimentoSaidaItemSqlFactory fac = new MovimentoSaidaItemSqlFactory(); fac.Inserir(saidaItem); }