This is a migrated thread and some comments may be shown as answers.

Automatic transient properties recognition

0 Answers 34 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vitaliy
Top achievements
Rank 1
Vitaliy asked on 22 Mar 2016, 05:40 PM

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.

Tags
Development (API, general questions)
Asked by
Vitaliy
Top achievements
Rank 1
Share this question
or