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.
16 lines
539 B
16 lines
539 B
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Infrastructure.Configuration
|
|
{
|
|
public static class EntityFrameworkExtensions
|
|
{
|
|
public static IConfigurationBuilder AddEFConfiguration(this IConfigurationBuilder builder,
|
|
Action<DbContextOptionsBuilder> optionsAction, List<EFConfigurationValue> configValues)
|
|
{
|
|
return builder.Add(new EFConfigurationSource(optionsAction, configValues));
|
|
}
|
|
}
|
|
} |