Posts by Jodaías Silva • 1 point
2 posts
-
0
votes1
answer21
viewsA: Get all classes that implement Classmapping<>
I was able to solve it this way: services.AddSingleton<ISessionFactory>((serviceProvider) => { var settings = configuration.GetSection("NHibernateConfig") .GetChildren() .ToDictionary(x…
-
-1
votes1
answer21
viewsQ: Get all classes that implement Classmapping<>
List<Type> entityMappings = new List<Type>(); IEnumerable<Type> allTypesInThisAssembly = Assembly.GetExecutingAssembly().GetTypes(); foreach (Type type in allTypesInThisAssembly) {…