i created a nhibernate project with all the classes and files, and when i use session.load for a single object everything works fine, but when i want to get a list (either using icriteria.list or iquery list (session.CreateCriteria(typeof(Lica)).List()) and i get a could not update error [class_name#2], and innerexception is sqldatetime overflow. and this is for a simple list of all the rows in a table.
below is the stack trace and the code
pls help :)
Hibernate version:1.0.2
Code:
NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration();
cfg.AddAssembly("dal");
NHibernate.ISessionFactory sf = cfg.BuildSessionFactory();
NHibernate.ISession s = sf.OpenSession();
Repeater1.DataSource = s.CreateCriteria(typeof(Lica)).List();
Repeater1.DataBind();
******
StackTrace " at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)\r\n at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)\r\n at NHibernate.Impl.ScheduledUpdate.Execute()\r\n at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)\r\n at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)\r\n at NHibernate.Impl.SessionImpl.Execute()\r\n at NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet querySpaces)\r\n at NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria)\r\n at NHibernate.Impl.CriteriaImpl.List()\r\n at _Default.Page_Load(Object sender, EventArgs e) in e:\\My Documents\\Visual Studio 2005\\WebSites\\sotac_web\\Default.aspx.cs:line 39\r\n at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n at System.Web.UI.Control.OnLoad(EventArgs e)\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)" string
SQL Server 2000