Btw, one more stupid question. If I have this:

var modeloPersistencia =
AutoPersistenceModel.MapEntitiesFromAssemblyOf<Disciplina>()
                .Where(
                    type => type == typeof (Disciplina)
                ) //comecar com disciplina
                .WithConvention(convention =>
                                    {
                                        convention.DefaultLazyLoad = false;
                                        convention.FindIdentity = field =>
field.Name == "Id";
                                        convention.GetTableName = type =>
String.Concat(type.Name, "s");
                                        convention.GetVersionColumnName =
type =>  "Versao";
                                        convention.GetPrimaryKeyNameFromType
= type => String.Concat("Id", type.Name);
                                        convention.IsBaseType = type => type
== typeof (EntidadeBase);
                                    });

modeloPersistencia.WriteMappingsTo(@"d:\");

Shouldn't I get the xml mapping file for class Disciplina on d:? I've tried
and I get nothing there (interestingly, if I add the
modeloPersistencia.ForTypesThatDeriveFro<EntidadeBase> method call then I do
get the xml for EntidadeBase only (which I don't want)...

Thanks.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to