I am using Subsonic v3.0.0.3 with the Linq templates. I am attempting to update a record in a SQL Server Express database with the following:
var db = new MyDB(Constants.Database);
db.Update<Contact>()
.Set(d => d.FirstName == contact.FirstName)
.Where(d => d.Id == contact.Id)
.Execute();
I am receiving a NullReferenceException
when this line is executed. The stack trace is as follows:
at SubSonic.Query.Update.GetCommand()
at SubSonic.Query.Update.Execute()
Any chance that someone may be able to suggest what the problem is?