Skip to content

Instantly share code, notes, and snippets.

@ashic
Created July 29, 2011 11:43
Show Gist options
  • Save ashic/1113662 to your computer and use it in GitHub Desktop.
Save ashic/1113662 to your computer and use it in GitHub Desktop.
duck
var personId = new Guid("9438D2F0-AD99-45C0-86D3-CAF9C3E77CAF");
//fails...says @p0 not passed in
db.In<Person>()
.Where(x => x.PersonId == personId)
.Update(x => new Person { Name = "XX" });
//succeeds
db.In<Person>()
.Where(x => x.PersonId == new Guid("9438D2F0-AD99-45C0-86D3-CAF9C3E77CAF"))
.Update(x => new Person { Name = "XX" });
//this looks like a problem...if the values are part of the event but we need to create values inline, it looks //like it fails?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment