Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created October 1, 2017 01:31
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 tonysneed/4c5e7c230acc9b3f2eeeed71fc07309c to your computer and use it in GitHub Desktop.
Save tonysneed/4c5e7c230acc9b3f2eeeed71fc07309c to your computer and use it in GitHub Desktop.
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