예제 #1
0
        public static void UseSqlServer(this IEvolveBuilder builder)
        {
            builder.ConfigureServices((context, services) =>
            {
                services.AddSingleton<IDriver, SqlServerDriver>();
            });

        }
예제 #2
0
 /// <summary>
 /// Adds services.
 /// </summary>
 /// <param name="evolveBuilder"></param>
 /// <param name="configureDelegate"></param>
 /// <returns></returns>
 public static IEvolveBuilder ConfigureServices(this IEvolveBuilder evolveBuilder, Action <IServiceCollection> configureDelegate)
 {
     return(evolveBuilder.ConfigureServices((context, collection) => configureDelegate(collection)));
 }