Created
August 18, 2010 19:24
-
-
Save jmarnold/535875 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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