subsonic3 - Subsonic 3 - Update NullReferenceException -


I am using Subson v3.0.0.3 with lincoln templates. I am trying to update a record in a SQL Server Express database with the following:

  var db = new MyDB (Constants.Database); Db.Update & lt; Contacts & gt; () .set (d = & gt; d.FirstName == contact.FirstName). Where (D => DID == contact.Id) .Execute ();  

I get a NullReferenceException when this line is executed. The stack trace is as follows:

  at SubSonic.Query.Update.GetCommand) SubSonic.Query.Update.Execute ()  

Any chance that someone has it Can you suggest what is the problem?

Hmm - I will say to ensure that the connection string is present (I will have connections in the coming weeks The error message needs to be fixed to lose the string) - it looks like a problem - do you want to post to github?


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -