Created
October 1, 2017 01:31
-
-
Save tonysneed/4c5e7c230acc9b3f2eeeed71fc07309c to your computer and use it in GitHub Desktop.
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc().AddJsonOptions( | |
options => options.SerializerSettings.PreserveReferencesHandling = PreserveReferencesHandling.All); | |
services.AddDbContext<NorthwindSlimContext>( | |
options => options.UseSqlite("Data Source=northwindslim.db")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment