I'm trying to validate my domain mappings against my database (legacy).
Given I have some value objects in my domain, how can I ignore then in the
SchemaValidator?
I'm using the following code to validate:
PortalSIMSessionFactoryManager portalSIMSessionFactoryManager =
((PortalSIMSessionFactoryManager)PortalSIMSessionFactoryManager.Current);var
cfg = portalSIMSessionFactoryManager.Configuration;
var vlsSchemaValidator = new SchemaValidator(cfg);
vlsSchemaValidator.Validate();
And my value object is:
public class FarolDeProjetoMap : ClassMap<FarolDeProjeto>
{
public FarolDeProjetoMap()
{
Id(f => f.Id);
Map(f => f.DescricaoDoProjeto);
ReadOnly();
}
}
When I call the Validate method, it is trying to validate a table name
"FarolDeProjeto" because of my mapping. How can I bypass it?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/YVZTl4xp9CEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.