コード例 #1
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__MenuOpti__);
     ClassName    = "MenuOptionsElement";
     Properties.ClearExposed();
     Label = Add <__TString__>("Label");
     Label.DefaultValue = "";
     Label.SetCustomAccessors((_p_) => { return(((__MenuOpti__)_p_).__bf__Label__); }, (_p_, _v_) => { ((__MenuOpti__)_p_).__bf__Label__ = (System.String)_v_; }, false);
     Choose = Add <__TLong__>("Choose$");
     Choose.DefaultValue = 0L;
     Choose.Editable     = true;
     Choose.SetCustomAccessors((_p_) => { return(((__MenuOpti__)_p_).__bf__Choose__); }, (_p_, _v_) => { ((__MenuOpti__)_p_).__bf__Choose__ = (System.Int64)_v_; }, false);
     Choose.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Choose()
         {
             App = (MenuOptionsElement)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((MenuOptionsElement)pup).Handle((Input.Choose)input); });
 }