Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SQL Server CE support schema update with NHibernate?

SchemaExport seems to work, but SchemaUpdate fails - the SchemaUpdate.Exceptions contains this object:

System.NotSupportedException: The method is not supported.
in System.Data.Common.DbConnection.GetSchema(String collectionName, String[] restrictionValues)
in NHibernate.Dialect.Schema.AbstractDataBaseSchema.GetTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
in NHibernate.Tool.hbm2ddl.DatabaseMetadata.GetTableMetadata(String name, String schema, String catalog, Boolean isQuoted)
in NHibernate.Cfg.Configuration.GenerateSchemaUpdateScript(Dialect dialect, DatabaseMetadata databaseMetadata)
in NHibernate.Tool.hbm2ddl.SchemaUpdate.Execute(Action`1 scriptAction, Boolean doUpdate)
like image 253
Stefan Avatar asked Dec 20 '25 00:12

Stefan


1 Answers

SQL Server Compact 4 supports GetSchema - use this version instead of 3.5

like image 183
ErikEJ Avatar answered Dec 22 '25 21:12

ErikEJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!