BANCO DE DADOS NAUM ATUALIZA DIRETO NA APLICACAO
banco de dados sqlexpress naum atualiza se estiver tireto na aplicação(win forms)
//String de Conexao
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory| este.mdf;Integrated Security=True;User Instance=True
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace teste
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void testeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.testeBindingSource.EndEdit();
this.testeTableAdapter.Update(this.testeDataSet.teste);
}
private void Form1_Load(object sender, EventArgs e)
{
this.testeTableAdapter.Fill(this.testeDataSet.teste);
}
}
}
//pq naum rola?
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory| este.mdf;Integrated Security=True;User Instance=True
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace teste
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void testeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.testeBindingSource.EndEdit();
this.testeTableAdapter.Update(this.testeDataSet.teste);
}
private void Form1_Load(object sender, EventArgs e)
{
this.testeTableAdapter.Fill(this.testeDataSet.teste);
}
}
}
//pq naum rola?
Tópico encerrado , respostas não são mais permitidas