I am new with NHibernate
. I somehow not able to find answer for my issue.
So let me ask here.
How can I dependency inject something into a class like this:
/*
public abstract class ByCodeAutoClassMapping<T> : ClassMapping<T> where T : EntityBase ... etc
*/
using App.Data.Persistence.Infrastructure;
using App.Data.Persistence.Infrastructure.Builders;
using Domain;
using NHibernate.Mapping.ByCode;
namespace Persistence.Auto.Mappings
{
public class EmployeeMapping : ByCodeAutoClassMapping<Employee>
{
protected override void InitCustomMappings(TableMapBuilder<Employee> tableMapping)
{
Schema("test");
}
}
}
Is there any way to register persistence classes into some IoC
container first and then provide these registration to NHibernate
?
Thanks