Created
July 3, 2018 22:04
-
-
Save xuzhg/2528597c2c9d81ba81a64a6f06d0fd1e to your computer and use it in GitHub Desktop.
EdmModelBuilder
This file contains 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 Startup | |
{ | |
// ... | |
private static IEdmModel GetEdmModel() | |
{ | |
ODataConventionModelBuilder builder = new ODataConventionModelBuilder(); | |
builder.EntitySet<Book>("Books"); | |
builder.EntitySet<Press>("Presses"); | |
return builder.GetEdmModel(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment