Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2018 15:47
What would you like to do?
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using TodoApi.Models;
namespace TodoApi
public class Startup
public void ConfigureServices(IServiceCollection services)
services.AddDbContext<TodoContext>(opt =>
opt.UseSqlite("Data Source=TodoList.db"));
public void Configure(IApplicationBuilder app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment