public void SubCrearTransaccion(IccTran lObjTran) { string dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "IccDb.db3"); var db = new SQLiteConnection(dbPath); db.Insert(lObjTran); }
private void SubGuardarDb() { IccSql lObjSql = new IccSql(); IccTran lIccTran = new IccTran(); IccEnvio lObjEnvio = new IccEnvio(); lObjEnvio.lobjEnce = cObjInicio.cTran; lObjEnvio.lObjDet = cObjInicio.cTranDet; lIccTran.Codigo = 0; lIccTran.JsonTran = JsonConvert.SerializeObject(lObjEnvio); lObjSql.SubCrearTransaccion(lIccTran); }