#
leecook
Hi,
I basically wanted to use the max property of sql to find the current highest value of a field. I found the following example code:
IList results = session.CreateCriteria(typeof(Cat))
.SetProjection( Projections.ProjectionList()
.Add( Projections.Max("Weight") )
)
.List();
However we don't seem to have the SetProjection Method available to us in Cuyahoga. Am I missing something?
I basically wanted to use the max property of sql to find the current highest value of a field. I found the following example code:
IList results = session.CreateCriteria(typeof(Cat))
.SetProjection( Projections.ProjectionList()
.Add( Projections.Max("Weight") )
)
.List();
However we don't seem to have the SetProjection Method available to us in Cuyahoga. Am I missing something?