示例#1
0
 public void Delete(long[] ids)
 {
     using (var repo = new NHGetAllRepository <T>())
     {
         repo.Delete(ids);
     }
 }
示例#2
0
 public void Delete(long id)
 {
     using (var repo = new NHGetAllRepository <Attendee>())
     {
         repo.Delete(id);
     }
 }
示例#3
0
        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);
            }
        }