mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
596 B
21 lines
596 B
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.EntityFrameworkCore;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace DistDemoApp;
|
|
|
|
public static class DistDemoEntityFrameworkServiceCollectionExtensions
|
|
{
|
|
public static void ConfigureDistDemoEntityFrameworkInfrastructure(this ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddAbpDbContext<TodoDbContext>(options =>
|
|
{
|
|
options.AddDefaultRepositories();
|
|
});
|
|
|
|
context.Services.Configure<AbpDbContextOptions>(options =>
|
|
{
|
|
options.UseSqlServer();
|
|
});
|
|
}
|
|
}
|
|
|