我有以下代码,但NHibernate无法识别自定义C#函数。
var query = Session.QueryOver<MyObject>().Select(
Projections.Group<MyObject>(x => GetDateTimeOffset(x.Date)),
Projections.Sum<MyObject>(x => x.TotalBytes));
public DateTime GetDateTimeOffset(DateTime date)
{
..............
}