I'm trying to combine sprig.net with ASP.NET MVC3, using PostgreSQL as DB. I succeeded to do this with MySQL before. Here are my 2 config files:
1) web.config:
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core" />
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
<section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" />
</sectionGroup>
</configSections>
<!-- spring context -->
<spring>
<parsers>
<parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data" />
</parsers>
<context>
<resource uri="~/spring-dao.xml" />
</context>
</spring>
....
2) spring-dao.xml (for MySQL DB) was:
<db:provider id="DbProvider" provider="MySql.Data.MySqlClient"
ConnectionString="Server=localhost;Database=db_movies;Uid=root;Pwd=1234;"/>
<object id="SessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject,
Spring.Data.NHibernate32">
<property name="DbProvider" ref="DbProvider"/> ...
NB: I've referenced the Npgsql.dll.
Do I need another .DLL and how can I change the <db:provider .../> to use Postgres as provider?
I looked for examples or tutorials via google, but I didn't find any.