77using SharpRepository . Repository ;
88using SharpRepository . Samples . CoreMvc . CustomRepositories ;
99using System ;
10- using MongoDB . Bson . Serialization ;
1110using SharpRepository . CoreMvc . Models ;
1211using SharpRepository . Samples . CoreMvc ;
1312
@@ -31,17 +30,17 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
3130
3231 // services.AddTransient<DbContext, ContactContext>(); // needed if you don't write dbContextClass on json configuration
3332
34- services . AddTransient < EmailRepository > ( r => new EmailRepository ( RepositoryFactory . BuildSharpRepositoryConfiguation ( Configuration . GetSection ( "sharpRepository" ) ) , "efCore " ) ) ;
33+ services . AddTransient < EmailRepository > ( r => new EmailRepository ( RepositoryFactory . BuildSharpRepositoryConfiguation ( Configuration . GetSection ( "sharpRepository" ) ) , "xml " ) ) ;
3534
3635 services . AddTransient < IUserService , UserService > ( ) ;
3736 services . AddTransient < IUserServiceCustom , UserServiceCustom > ( ) ;
3837 services . AddTransient < UserRepository > (
3938 r => new UserRepository (
40- RepositoryFactory . BuildSharpRepositoryConfiguation ( Configuration . GetSection ( "sharpRepository" ) ) , "efCore "
39+ RepositoryFactory . BuildSharpRepositoryConfiguation ( Configuration . GetSection ( "sharpRepository" ) ) , "xml "
4140 ) ) ;
4241 // return services.UseSharpRepository(Configuration.GetSection("sharpRepository")); //default InMemory
4342 // return services.UseSharpRepository(Configuration.GetSection("sharpRepository"), "mongoDb"); // for Mongo Db
44- return services . UseSharpRepository ( Configuration . GetSection ( "sharpRepository" ) , "efCore " ) ; // for Ef Core
43+ return services . UseSharpRepository ( Configuration . GetSection ( "sharpRepository" ) , "xml " ) ; // for Ef Core
4544 }
4645
4746 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
0 commit comments