public void Delete(long[] ids) { using (var repo = new NHGetAllRepository <T>()) { repo.Delete(ids); } }
public void Delete(long id) { using (var repo = new NHGetAllRepository <Attendee>()) { repo.Delete(id); } }
static void Main(string[] args) { NHibernateHelper.Configure("Data Source=HALA\\SQLEXPRESS;Initial Catalog=HSEvents;Integrated Security=True;"); using (var session = NHibernateHelper.OpenSession()) { new AttendeesCreator().Run(session); } using (var repo = new NHGetAllRepository <EventExecution>()) { repo.Delete(x => x.Event == null); } }