Error in insert data
Posted: Thu 20 Nov 2008 02:05
Hello, I am on the studying dotconnect is Postgres and Linq. Download the trial version for testing and wrote the following code (is horrible):
it only gives me the following error:
Can't perform Create, Update or Delete operations on 'Table(cliente)' because it is read-only
I looked almost all of this forum and not found anything similar to my problem.
Tank's for Help.
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
estudoLinqDataContext.estudoLinqDataContext estudo = new estudoLinqDataContext.estudoLinqDataContext();
var objCliente = new estudoLinqDataContext.cliente()
{
Cli_nome = textBox1.Text
};
estudo.clientes.InsertOnSubmit(objCliente);
estudo.SubmitChanges();
}
Can't perform Create, Update or Delete operations on 'Table(cliente)' because it is read-only
I looked almost all of this forum and not found anything similar to my problem.
Tank's for Help.