Let's say I have this Target Per Entity Hierarchy:
(abstract)TableA
Id
TableB: TableA
NumericValue (int)
TableC: TableA
BooleanValue (bool)
I am doing a projection to a flat list, i.e. to a class
ProjectionClass
Id, NumericValue, BooleanValue
Query:
var query = qf.Create().Select( () =>
{
new ProjectionClass {
Id = TableAFields.Id.ToValue<int>(),
NumericValue= TableBFields.NumericValue .ToValue<int?>(),
BooleanValue = TableCFields.BooleanValue.ToValue<bool?>()
}
})
.From(qf.TableA);
This is fine, but I'd like to include the information of source entity (TableB or TableC).
Is there a strong typed way to get this info?
I think a non stong typed is by using WithProjector and then Get<T> method.
);