public static DatabaseOptionsBuilder <T> AddNPrismy <T>(this IServiceCollection services) where T : Database { //Register consumer's Database object. services.AddScoped <T>(); AutofacModule.RegisterArtifacts(); return(new DatabaseOptionsBuilder <T>()); }
public static DatabaseOptionsBuilder <T> Initialize <T>() { AutofacModule.RegisterArtifacts(); return(new DatabaseOptionsBuilder <T>()); }