Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created August 18, 2010 19:24
Show Gist options
  • Save jmarnold/535875 to your computer and use it in GitHub Desktop.
Save jmarnold/535875 to your computer and use it in GitHub Desktop.
public class SampleEndpoint
{
private readonly ICommandExecutor _executor;
public SampleEndpoint(ICommandExecutor executor)
{
_executor = executor;
}
public void Get()
{
var entityId = 0;
_executor.Execute<Domain.Domain>((uow, domain) =>
{
uow.Insert(domain);
uow.Commit();
entityId = domain.DomainId;
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment