I’m trying to insert a record (on LINQ to SQL) to the database. So what I’ve done is (as suggested on this tutorial) :
DataClassesDataContext db = new DataClassesDataContext();
Pagine pagina = new Pagine();
db.Pagines.Add(pagina);
db.SubmitChanges();
but seems that .Add() method doesnt exist? I don’t find it…
Also, I don’t have any stored procedures at all on the DB right now… maybe that’s the cause?
Assuming
Paginesreturns aTable<Pagine>or a subclass, I think you wantInsertOnSubmit: