Normally my queries using HQL are like this:
public IList<Abastecimento> ConsultaData(DateTime DtAbastecido)
{
string hql = "SELECT a FROM Abastecimento a";
IQuery query = session.CreateQuery(hql);
return query.List<Abastecimento>();
}
Using query like this I then use the controller as follows:
var Rota = ckm.ConsultaProduto(viewModel.NumCarroId);
I wanted to know how I would put a between bringing dates, an example would be to bring me a record from 01/11/2017 until 01/12/2017, I wanted to know how the HQL query would be applying the between with two textbox that I will use in the form.