Hi!
i'm interested in using NHibernate together with the Fluent NHibernate
project, so i wrote a little Test Application to get used to it.
however, i'm running into a weird Problem when creating the
SessionFactory:
{"Could not create the driver from NHibernate.Driver.SQLite20Driver,
NHibernate, Version=2.1.0.4000, Culture=neutral,
PublicKeyToken=aa95f207798dfdb4."}
a search at google pointed me to issues with the x64 architecture and
the SQLite wrapper, so i tried to set the x86 configuration, but the
problem is still there :(
here is the code of the small sample project:
using System;
using de.AvatR.Shared;
using FluentNHibernate.Automapping;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
namespace NHibernateTest
{
public class HibernateSessionHelper
{
public static ISessionFactory _sessionFactory;
public static ISession OpenSession()
{
if (_sessionFactory == null)
{
_sessionFactory = Fluently.Configure()
.Database
(SQLiteConfiguration.Standard.ConnectionString("data
source=sqlite.db"))
.Mappings(
m => m.AutoMappings.Add
(AutoMap.AssemblyOf<SimpleData>())).
BuildSessionFactory();
}
return _sessionFactory.OpenSession();
}
}
}
i would be very interested if someone else also experiances this
behaviour of if i'm just doing something wrong with the SQLite
setup...
thanks in advance,
Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---