私は次のようなクラスを持っています
public class Person {
public int age {get;set;}
public string ageText {get;set;}
}
npoco がデータベースから age を選択するときに、関数も実行して ageText を設定するようにオーバーライドしたいと考えています。したがって、 age を 25 に設定しようとすると、さらに次のように関数が実行されます。
function setAgeAsText(age) {
this.ageAsText = "Twenty five"
}