Automatic transient properties recognition

Thread is closed for posting
1 posts, 0 answers
  1. Vitaliy
    Vitaliy avatar
    36 posts
    Member since:
    Dec 2008

    Posted 22 Mar 2016 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();


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

    every time.

Back to Top