Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
1.2.0.4000
I get this exception
query did not return a unique result: 9
when I try to get the count of records in one of my table. It is to only this one. Not the others!?
[ActiveRecord("MESSAGES")]
public class Message : ActiveRecordBase
{
private int _id;
private DateTime _timeSt;
private string _msgType;
private string _sender;
private string _descr;
.....
public static int RecordCount()
{
CountQuery cq = new CountQuery( typeof( Message ) );
return (int)ActiveRecordMediator.ExecuteQuery( cq );
}