I'm newer about dblinq ,
I need to do simples program with dblink ...

The problam is 04

01 - Insert
02 - seach
03 - delete
04 - update <==== I dont know

Table name is Test:
id int auto_increment
name varchar(50)

01 - INSERT OK
db.Test.InsertOnSubmit
             (
                new Test
                {
                    Nome = "Vamos Ver essa"
                }
            );
 db.SubmitChanges();

02 - SEACH OK
var queryx = from Test in db.Test where Teste.ID > 2 select
Teste.Nome;
            int x = 1;
            foreach (var item in queryx)
            {

                Response.Write(item);
                x++;
            }

03 - DELETE OK
 var query32 = (from Teste in db.TestE where Teste.ID == 1 select
Teste).First();
            db.TestE.DeleteOnSubmit(query32);
            db.SubmitChanges();


04 <------------------- UPDATE
If  I want to modify name of id 1 what a do ?

-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to