NHibernate QueryOver Coalesce a property to another property
Consider this silly domain: namespace TryHibernate.Example { public class Employee { public int Id { get; set; } public string Name { get; set; } } public class WorkItem { public int Id { get; set; } public string Description { get; set; } public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } } public class Task { public int Id { get; set; } public Employee Assignee { get; set; } public WorkItem WorkItem { get; set; } public string Details { get; set; } public DateTime? StartDateOverride { get; set; } public DateTime? EndDateOverride { get; set; } } } The idea is that