Using that method throws an Exception... It doesn't give me any
details, it just says there is an error.
{"An invalid or incomplete configuration was used while creating a
SessionFactory. Check PotentialReasons collection, and InnerException
for more detail.\r\n\r\n"}
Potential Reasons is empty. It has 0 everywhere. No information is
given.
However, if I pass in a TextWriter instead of a filename, I can make
it work. The code generated is as follows...
<column name="Email" not-null="true" unique="true" />
For that field.
But the SQL generated by
.ExposeConfiguration(config =>
{
new
NHibernate.Tool.hbm2ddl.SchemaExport(config)
.SetOutputFile("Output.sql")
.Create(/* Output to
console */ false, /* Execute script
against database */ true);
})
Doesn't reflect this Unique Constraint.
On Dec 14, 3:20 am, James Gregory <[email protected]> wrote:
> Hmm, that's interesting. Unique certainly should generate a unique
> constraint. What database are you using? Could you export your mappings and
> attach them here?
>
> If you're using Fluently.Configure there's an ExportTo method on the
> FluentMappings property.
>
> Fluently.Configure()
> .Mappings(m =>
> {
> m.FluentMappings.AddFromAssemblyOf<T>()
> .ExportTo("C:\MyPath");
> })
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
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/fluent-nhibernate?hl=en.