Skip to content

Instantly share code, notes, and snippets.

@xuzhg
Last active April 6, 2020 23:52
Show Gist options
  • Select an option

  • Save xuzhg/2e9abc4043ab816ae919bc68a483c777 to your computer and use it in GitHub Desktop.

Select an option

Save xuzhg/2e9abc4043ab816ae919bc68a483c777 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<BookStoreContext>(opt => opt.UseInMemoryDatabase("BookLists"));
services.AddControllers();
services.AddOData();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment