Skip to content

Instantly share code, notes, and snippets.

@StevenTCramer
Created February 5, 2016 19:48
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 StevenTCramer/8dbebe06be984ccb60d3 to your computer and use it in GitHub Desktop.
Save StevenTCramer/8dbebe06be984ccb60d3 to your computer and use it in GitHub Desktop.
How to get entity Id in result without changing your pipeline.
namespace Feature.Project
public class Create
{
...
public class Result
{
private Project Project{ get; }
public Result(Project aProject)
{
Project = aProject;
}
public int ProjectId => this.Project.ProjectId;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment