Thanks Roberto, it worked.
On Sep 12, 10:13 am, Roberto Hernández <rhernan...@gmail.com> wrote:
> You should be posting this one to the NHibernate group as this relates more
> to the schema export tool (aka SchemaExport, hbm2ddl).
>
> Having said that I did take a look at the tool documentation and found that
> you can specify the end-of-line delimiter, so you can try something like
> this:
>
> // NH Documentation :http://nhforge.org/doc/nh/en/index.html
> // _cfg is your FluentNHibernate FluentConfiguration instance.
> var export = new SchemaExport(_cfg.BuildConfiguration());
>
> export.SetDelimiter(";");
> export.SetOutputFile("Output.sql");
> export.Create(true, false);
>
> Regards,
>
> Roberto.-
>
> On Fri, Sep 11, 2009 at 2:27 PM, David Leite <loliveira.da...@gmail.com>wrote:
>
>
>
>
>
> > Hello,
>
> > I have an application that generate SQL script files to PostGreSQL and
> > Oracle. It seems to generate the files well, but when I try to run the
> > sripts in both databases it gives an error. It seems that fluent
> > Nhibernate doesn't put the ";' at the and of each command, so it
> > doesn't run. The code to create the session factory is shown below:
>
> > Oracle:
>
> > ISessionFactory SessFact = Fluently.Configure()
> > .Database
> > (FluentNHibernate.Cfg.Db.OracleClientConfiguration.Oracle10
> > .ConnectionString(SQLConn))
> > .Mappings(m =>
>
> > m.FluentMappings.AddFromAssembly(ModuleEntitiesAssembly).ExportTo
> > (ExportTest))
> > .ExposeConfiguration
> > (BuildSchema)
> > .BuildSessionFactory();
>
> > How can I make it generate the scripts correctly?
>
> > Thanks,
>
> > David Leite- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---