I am new to Linq to Entities and I am trying to insert a record using the linq syntax.
I have created the edmx file and instatiated it in a class with:
PasswordEntities db = new PasswordEntities();
I have a method that looks like this:
public void InsertRecord(Password record)
{
db.AddToPasswords(record);
}
But intellisense tells me that AddToPasswords is a deprecated method and to consider using the .Add method of the associated ObjectSet property instead.
I am running VS 2010 under Framework 4.0.
What would be the syntax to do this?