-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow automatic schema generation to work against Azure SQL Database #9
Comments
Are you using NHibernate to generate the schema? |
Yeah |
Any chance you can provide a bit of sample code so I can replicate it and try and see a way to fix it? |
Sorry to leave this hanging, I forgot to update here. It turns out that it's not an NHibernate issue, it's the way SQLAzure just works. They require each table to have a PK. It shouldn't be NHibernate that creates them. |
I'm still interested in investigating if it's possible to fix this - while I would never use NHibernate's schema generation in a production environment it's useful for rapid prototyping and it sucks that you can't use it in SQL Azure. Are you able to provide some sample code so I can look into it still? Thanks |
It appears that Sql Azure requires a clustered primary key for every table. I'm using NHibernate Fluent with this driver. The join tables don't have a primary key though.
The text was updated successfully, but these errors were encountered: