私はこの機能を持っています
- 常にtrueを返しますが、問題はテーブルUserを変更しますが、テーブルUseraclを変更しないことです
このコードを修正するにはどうすればよいですか?
try { NHibernate.ISession nhSession= User.OpenSession(); using (var tx = nhSession.BeginTransaction()) { User u = new User() { Account = acc, Identification = identification, ContactEmail = mail, ContactName = nom, ContactPhone = phone, NotifyEmail = notify, Password = mot }; nhSession.SaveOrUpdate(u); Useracl ua = new Useracl { Account = acc, UserID = identification, AccessLevel = 1, AclID = acc }; nhSession.SaveOrUpdate(ua); tx.Commit(); return true; } } catch { return false; }