Joined: Thu Jul 17, 2008 12:00 am Posts: 5
|
0 vote down
star
When debugging everything appears good. The insert commits and there is no roll back, no exceptions. I have tried leaving out the flush() as well. This is SQLCE. I sure hope some can help with this.
Here is my call:
using (ITransaction transaction = _session.BeginTransaction())
{
_session.Save(calc);
_session.flush();
transaction.Commit();
}
Real simple mapping:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="SigCalculator"
namespace="SigCalculator.Domain">
<id name="ID">
<generator class="guid" />
</id>
<property name="Time" />
<property name="Equation" />
here's the object:
public class Calculation
{
public virtual Guid ID { get; set; }
public virtual DateTime Time { get; set; }
public virtual string Equation { get; set; }
}
|
|