I have problem like below (WinForm app), anybody can help ?
Code:
var prod = session.QueryOver<BO.Producent>().List();
var s = prod[0];
session.Evict(s);
session.Refresh(s); // error:No persister for: Castle.Proxies.ProducentProxy - this is that problem
// Second Level Cache is turned off
//BO.Producent mapping via Fluent (BO.Producent.hbm.xml)
// <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
//- <class xmlns="urn:nhibernate-mapping-2.2" dynamic-insert="true" dynamic-update="true" name="BO.Producent, BO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="Producenci">
//- <id name="ID" type="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="ID" />
// <generator class="identity" />
// </id>
//- <property name="CreatedUser" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="CreatedUser" not-null="true" />
// </property>
//- <property name="CreatedDate" type="System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="CreatedDate" not-null="true" />
// </property>
//- <property name="ModifiedUser" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="ModifiedUser" />
// </property>
//- <property name="ModifiedDate" type="System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="ModifiedDate" />
// </property>
//- <property name="Nazwa" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="Nazwa" not-null="true" unique="true" />
// </property>
//- <property name="Obrazek" type="System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" lazy="true">
// <column name="Obrazek" length="2147483647" />
// </property>
//- <property name="Link" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
// <column name="Link" />
// </property>
// </class>
// </hibernate-mapping>