public static void UseSqlServer(this IEvolveBuilder builder) { builder.ConfigureServices((context, services) => { services.AddSingleton<IDriver, SqlServerDriver>(); }); }
/// <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))); }