public Schema() : base() { InstanceType = typeof(__Franchis1__); Properties.ClearExposed(); Name = Add <__TString__>("Name"); Name.DefaultValue = ""; Name.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__Name__ = (System.String)_v_; }, false); Url = Add <__TString__>("Url"); Url.DefaultValue = ""; Url.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__Url__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__Url__ = (System.String)_v_; }, false); Key = Add <__TString__>("Key"); Key.DefaultValue = ""; Key.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__Key__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__Key__ = (System.String)_v_; }, false); SoldHomes = Add <__TLong__>("SoldHomes"); SoldHomes.DefaultValue = 0L; SoldHomes.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__SoldHomes__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__SoldHomes__ = (System.Int64)_v_; }, false); TotalComission = Add <__TLong__>("TotalComission"); TotalComission.DefaultValue = 0L; TotalComission.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__TotalComission__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__TotalComission__ = (System.Int64)_v_; }, false); AvgComission = Add <__TLong__>("AvgComission"); AvgComission.DefaultValue = 0L; AvgComission.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__AvgComission__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__AvgComission__ = (System.Int64)_v_; }, false); Trend = Add <__TLong__>("Trend"); Trend.DefaultValue = 0L; Trend.SetCustomAccessors((_p_) => { return(((__Franchis1__)_p_).__bf__Trend__); }, (_p_, _v_) => { ((__Franchis1__)_p_).__bf__Trend__ = (System.Int64)_v_; }, false); }
public Schema() : base() { InstanceType = typeof(__Franchis__); Properties.ClearExposed(); Name = Add <__TString__>("Name$"); Name.DefaultValue = ""; Name.Editable = true; Name.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Name__ = (System.String)_v_; }, false); SoldHomes = Add <__TString__>("SoldHomes"); SoldHomes.DefaultValue = ""; SoldHomes.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__SoldHomes__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__SoldHomes__ = (System.String)_v_; }, false); TotalComission = Add <__TString__>("TotalComission"); TotalComission.DefaultValue = ""; TotalComission.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__TotalComission__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__TotalComission__ = (System.String)_v_; }, false); AvgComission = Add <__TString__>("AvgComission"); AvgComission.DefaultValue = ""; AvgComission.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__AvgComission__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__AvgComission__ = (System.String)_v_; }, false); Trend = Add <__TString__>("Trend"); Trend.DefaultValue = ""; Trend.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Trend__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Trend__ = (System.String)_v_; }, false); AddTrigger = Add <__TString__>("AddTrigger$"); AddTrigger.DefaultValue = ""; AddTrigger.Editable = true; AddTrigger.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__AddTrigger__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__AddTrigger__ = (System.String)_v_; }, false); AddTrigger.AddHandler((Json pup, Property <String> prop, String value) => { return(new Input.AddTrigger() { App = (FranchiseOfficeListJson)pup, Template = (TString)prop, Value = value }); }, (Json pup, Starcounter.Input <String> input) => { ((FranchiseOfficeListJson)pup).Handle((Input.AddTrigger)input); }); }