Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NHibernate on Azure?

Has anyone tried NHibernate on Azure? Is there conflicts with the medium trust or SQL integration?

like image 842
Chance Avatar asked Jun 10 '09 05:06

Chance


3 Answers

The NHibernate test suite fully works on SQL Azure. You should be able to simply change your connection string to your SQL Azure connection string.

There shouldn't be any hangups in running using NHibernate from a Web or Worker role.

like image 108
jspru Avatar answered Nov 01 '22 15:11

jspru


I have tried NHibernate 3 inside Azure Web Role which talks to Azure SQL. I did not have any problems, runs pretty fine.

I am using NFluent for configuration. I can create the database directly from the mapping configuration.

There was only one issue with the HiLo generator. If you are interested in details, I have post it on my blog.

This issue comes from the fact that Azure SQL is not completely compatible with SQL Server. The limitations of Azure SQL are described here. But that was just a minor issue.

like image 38
hoonzis Avatar answered Nov 01 '22 14:11

hoonzis


Not sure about NHibernate, but Azure now allows full trust applications.

Hosting Web and Worker Roles Under Full Trust

like image 45
CoderDennis Avatar answered Nov 01 '22 13:11

CoderDennis