Page 1 of 1

Error in insert data

Posted: Thu 20 Nov 2008 02:05
by Deco
Hello, I am on the studying dotconnect is Postgres and Linq. Download the trial version for testing and wrote the following code (is horrible):

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();
        }
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.

Posted: Thu 20 Nov 2008 10:38
by AndreyR
Could you please send us by e-mail (support * devart * com, copy to andreyr * devart * com) the script of your test DB and the generated DBML file with the underlying code file?