Example #1
0
        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>());
        }
Example #2
0
 public static DatabaseOptionsBuilder <T> Initialize <T>()
 {
     AutofacModule.RegisterArtifacts();
     return(new DatabaseOptionsBuilder <T>());
 }