I am successfully getting Fluent NHibernate to update my database by calling UpdateBaseFiles:
Public Sub UpdateBaseFiles()
Dim db As SQLiteConfiguration
SchemaUpdate has an overload that accepts an Action
delegate that you can supply to export the script. Here's an example in C#:
Action updateExport = x =>
{
using (var file = new FileStream(path, FileMode.Create, FileAccess.Append))
using (var sw = new StreamWriter(file))
{
sw.Write(x);
}
};
new SchemaUpdate(config).Execute(updateExport, false);
I think that will work. I wasn't able to test it because SchemaUpdate is not working with SQLCE.