Automatic transient properties recognition

1 posts, 0 answers
  1. Vitaliy
    Vitaliy avatar
    36 posts
    Member since:
    Dec 2008

    Posted 22 Mar Link to this post

    Can the engine be a little more experienced in the properties estimation.

    E.g. when the property simply doesn't based on any class field?

    I mean it is a little boring to specify:

    cfg.HasProperty(c => c.PeriodNameForVoucherRef).AsTransient();

    for: 

    public string PeriodNameForVoucherRef
                => PeriodName.StartsWith("QD") ? PeriodName.Substring(3) : PeriodName;

    every time.

Back to Top