I have the following mapping:
public class MyClassMap : ClassMap<MyClass>
{
public MyClasseMap()
{
Table("TABLE_NAME");
Id(x => x.Id).Column("TR_ID");
}
}
When I try to retrieve all the entities using criteria objects I get the following:
System.FormatException : Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) at NHibernate.Impl.CriteriaImpl.List(IList results) at NHibernate.Impl.CriteriaImpl.ListT
Tried all types of mapping variations. Still not working. Also using the latest binaries (#596) of fluent nhibernate. How do I get this to work?