what you are expecting to do the schema updater?
2011/3/3 John Bosley <[email protected]>
> I've been having some issues using SchemaUpdate with MySQL.
>
> I *seem* to have implemented everything correctly, but when I run it
> it doesn't update anything. It doesn't generate any errors, and it
> pauses for about the sort of length of time you would expect it to
> take to inspect the DB schema, but it simply doesn't update anything,
> and when I try to get it to script the change it just doesn't do
> anything - it's as if it can;'t detect any changes to up the DB
> schema, but I have created a new entity and a new mapping class - so I
> cant see why it's not picking it up.
>
>
> var config = Fluently.Configure()
> .Database(() => {
> var dbConfig =
> MySQLConfiguration.Standard.ConnectionString(
> c =>
> c.Server(configuration.Get<string>("server", ""))
> .Database(configuration.Get<string>("database",
> ""))
> .Password(configuration.Get<string>("password",
> ""))
> .Username(configuration.Get<string>("user",
> ""))
> );
>
> if (verbose) dbConfig.ShowSql();
> return dbConfig;
> });
>
> config.Mappings(
> m => m.FluentMappings
> .AddFromAssemblyOf<User>()
> .AddFromAssemblyOf<UserMap>()
> .Conventions.AddFromAssemblyOf<UserMap>()
>
> .Conventions.AddFromAssemblyOf<PrimaryKeyIdConvention>()
> // .PersistenceModel.Add(new CultureFilter())
> );
>
>
> var export = new SchemaUpdate(config);
> export.Execute(false, true);
>
>
> I don't think there's anything wrong with my config because it works
> perfectly well with ShemaExport - it's just SchemaUpdate where I seem
> to have a problem.
>
> any ideas would be much appreciated!
> John
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" 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/nhusers?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.