Skip to content

Instantly share code, notes, and snippets.

@BillKeenan
Created May 10, 2012 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BillKeenan/2656225 to your computer and use it in GitHub Desktop.
Save BillKeenan/2656225 to your computer and use it in GitHub Desktop.
var results = _session.Query<Model.ActionObject>().Where(x => x.ActionType == ActionType.TradeRequest && x.ActionObjectId==actionObject.ActionObjectId);
foreach (var result in results)
{
result.State = State.Closed;
}
_session.Store(actionObject);
_session.SaveChanges();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment