Skip to content

ServiceGovernance/ServiceGovernance.Repository.EntityFramework

Repository files navigation

ServiceGovernance.Repository.EntityFramework

Build status NuGet Version License

Persistance library for ServiceRepository using EntityFramework.

Usage

public void ConfigureServices(IServiceCollection services)
{
    var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name;

    services.AddServiceRepository()
        // this adds the persistence to EF
        .AddRepositoryStore(options =>
        {
            options.ConfigureDbContext = builder =>
                builder.UseSqlServer(Configuration.GetConnectionString("default"),
                    sql => sql.MigrationsAssembly(migrationsAssembly));
        });
}

About

Persistance library for Service Repository using EntityFramework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy