Created
February 5, 2016 19:48
-
-
Save StevenTCramer/8dbebe06be984ccb60d3 to your computer and use it in GitHub Desktop.
How to get entity Id in result without changing your pipeline.
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
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