varnotification=newNotification();vartrigger=newNotificationTrigger{Notification=notification};notification.Trigger=trigger;session.Save(notification);session.Flush();//Will create both entities in the database