When using auto mappings in Fluent NHibernate, you have the ability to do something like:
_configuration =
开发者_运维技巧Fluently.Configure().
Database(
MsSqlConfiguration.MsSql2000.ConnectionString(
@"some connection string")
)
.Mappings(
m => m.AutoMappings.Add(AutoMap.AssemblyOf<GSAContract>().Where(x=>x.Namespace == "SomeNamespace")))
.BuildConfiguration();
I'm looking to be able to do something similar with FluentMappings, but I can't seem to figure out a similar behavior (filtering on Namespace).
If you won't supply a ClassMap for a class it won't be mapped.
精彩评论