Hello :)
I'm getting this error
Code:
NHibernate.Exceptions.GenericADOException: could not execute update query[SQL: delete from Odredista] ---> System.Data.SQLite.SQLiteException: SQLite error
no such table: tablename.
My configuration file look like this:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="NHibernate.Test">
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
<property name="connection.connection_string">
Data Source=C:\Users\mona\Desktop\Agencija\Database\Agencija.db;Version=3
</property>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="query.substitutions">true=1;false=0</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property>
</session-factory>
</hibernate-configuration>
Mapping file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" >
<class name="Agencija.Odredista, Agencija">
<id name="Id">
<generator class="native" />
</id>
<property name="NazivOdredista" unique="true" type="string" />
</class>
</hibernate-mapping>
I have test file in other project where everything work perfectly, but when i run this program i get error.