Skip to content

Instantly share code, notes, and snippets.

@dvhthomas
Created October 12, 2009 23:23
Show Gist options
  • Save dvhthomas/208835 to your computer and use it in GitHub Desktop.
Save dvhthomas/208835 to your computer and use it in GitHub Desktop.
public long Count()
{
var woCount = _unitOfWork.CurrentSession
.CreateQuery("select count(*) from Workorder")
.UniqueResult<long>();
return woCount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment