Here is a working SQLite test on the method that fails in the
conversion run, and some debug output:
[Test]
public void SaveAll_AllProjectsAreAvailableAndPersistent() {
using (var tx =
_SessionFactory.GetCurrentSession().BeginTransaction()) {
Assert.That(_repos.Count, Is.EqualTo(0));
_repos.SaveAll(_initialProjectListing);
foreach (var p in _initialProjectListing) {
Assert.That(_repos.Contains(p), Is.True);
Assert.That(p.IsTransient(), Is.False);
}
tx.Rollback();
}
_SessionFactory.GetCurrentSession().Clear();
}
Item type: Domain.Model.Projects.Project item: 007-00-056 ATM Machine
Replacement
Is transient: True Id: 0
Description length: 23 Code Length: 10
NHibernate: INSERT INTO Projects (Code, Description) VALUES (@p0,
@p1); select last_insert_rowid();@p0 = '007-00-056', @p1 = 'ATM
Machine Replacement'
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.