Firstly: This is my first time using databases in general together
with C#.
I've done some work on an Google AppEngine application which uses
Spring MVC and I'm now supposed to port this to Microsoft Windows
Azure. My first attempt was to utilize Spring and NHibernate for
maximum awesomeness. I've tried that now for a couple of days, but
failed. I then skipped Spring and focused on NHibernate instead just
to get something up and running.
The biggest problem now is that I have no idea how to connect to the
local development storage. Everyone says I'm just supposed to use the
connection string "UseDevelopmentStorage=true", but inserting that
into the configfile will just generate this error:
"ArgumentException,
Keyword not supported: usedevelopmentstorage."
On the line:
"sessionFactory = cfg.BuildSessionFactory();"
My hibernate.cfg.xml looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
property>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</
property>
<property
name="connection.driver_class">NHibernate.Driver.SqlClientDriver</
property>
<property
name="connection.connection_string">UseDevelopmentStorage=true</
property>
<property
name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</property>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>
What am I doing wrong?
--
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.