Ejemplo n.º 1
0
		public void DeleteWithNotNullPropertySetToNull()
		{
			ISession session = OpenSession();
			NotNullPropertyHolder a = new NotNullPropertyHolder();
			a.NotNullProperty = "Value";
			session.Save(a);
			session.Flush();
			a.NotNullProperty = null;
			session.Delete(a);
			session.Flush();
			session.Close();
		}
Ejemplo n.º 2
0
        public async Task DeleteWithNotNullPropertySetToNullAsync()
        {
            ISession session        = OpenSession();
            NotNullPropertyHolder a = new NotNullPropertyHolder();

            a.NotNullProperty = "Value";
            await(session.SaveAsync(a));
            await(session.FlushAsync());
            a.NotNullProperty = null;
            await(session.DeleteAsync(a));
            await(session.FlushAsync());
            session.Close();
        }
Ejemplo n.º 3
0
        public void DeleteWithNotNullPropertySetToNull()
        {
            ISession session        = OpenSession();
            NotNullPropertyHolder a = new NotNullPropertyHolder();

            a.NotNullProperty = "Value";
            session.Save(a);
            session.Flush();
            a.NotNullProperty = null;
            session.Delete(a);
            session.Flush();
            session.Close();
        }