예제 #1
0
 public static void AddDataServices(this IServiceCollection services, IHostEnvironment environment)
 {
     services.AddDbContext <Db>(options => options.UseSqlite(environment.GetSqlConnectionString()));
     services.AddScoped <IRepo, Repo>();
 }