Having a repository for NHibernate with LINQ queries like this
var q = from x in SomeIQueryable<SomeEntity> where x.A1 == a1 && x.B1 == b1 select x;
Is there a solution how to get this WHERE filter and apply it for "one-shot-delete" which seems to be only possible through HQL:
var cmd = string.Format("delete from SomeEntity where x.A1 = '{0}' and x.B1 = {1}", a1, b1);
session.CreateQuery(cmd).ExecuteUpdate();