Skip to content
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

Open
clanstyles opened this issue Jun 19, 2013 · 5 comments
Open

Comments

@clanstyles
Copy link

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.

@robdmoore
Copy link
Member

Are you using NHibernate to generate the schema?

@clanstyles
Copy link
Author

Yeah

@robdmoore
Copy link
Member

Any chance you can provide a bit of sample code so I can replicate it and try and see a way to fix it?

@clanstyles
Copy link
Author

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.

@robdmoore
Copy link
Member

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

@robdmoore robdmoore reopened this Nov 24, 2013
@robdmoore robdmoore changed the title HasManyToMany SqlAzure Allow automatic schema generation to work against Azure SQL Database Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants