-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
invalidThis doesn't seem rightThis doesn't seem rightwontfixThis will not be worked onThis will not be worked on
Description
Hi
I am having a base type and a few derived types of it.
[Table("JournalEntryRefs")]
public abstract class JournalEntryRef
{
[Projectable]
public virtual string? DisplayName => null;
}
[Table("JournalEntryRefs")]
public class InvoiceJournalEntryRef : JournalEntryRef
{
[Projectable]
public override string? DisplayName => Invoice.Number != null ? Invoice.Number : "";
}
[Table("JournalEntryRefs")]
public class PaymentJournalEntryRef : JournalEntryRef
{
[Projectable]
public override string? DisplayName => Payment.Number;
}When I query all the JournalEntryRef's(ie a collection somewhere) I specify that I want the reference column(beside others) and I'd expect that as such it would return the Invoice number for Invoice JournalEntryRef and Payment number for PaymentEntryRef. But currently they are always null.
Is that a bug? If so how can we fix it? Or is that entirely not possible?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem rightwontfixThis will not be worked onThis will not be worked on