Beispiel #1
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__Corporat__);
     Properties.ClearExposed();
     Html = Add <__TString__>("Html");
     Html.DefaultValue = "/Usama/CoporationJson.html";
     Html.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__Html__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__Html__ = (System.String)_v_; }, false);
     Name = Add <__TString__>("Name");
     Name.DefaultValue = "";
     Name.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__Name__ = (System.String)_v_; }, false);
     Save = Add <__TLong__>("Save$");
     Save.DefaultValue = 0L;
     Save.Editable     = true;
     Save.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__Save__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__Save__ = (System.Int64)_v_; }, false);
     Save.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Save()
         {
             App = (CorporationVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((CorporationVM)pup).Handle((Input.Save)input); });
     Add = Add <__TLong__>("Add$");
     Add.DefaultValue = 0L;
     Add.Editable     = true;
     Add.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__Add__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__Add__ = (System.Int64)_v_; }, false);
     franchiseNametoAdd = Add <__TString__>("franchiseNametoAdd$");
     franchiseNametoAdd.DefaultValue = "";
     franchiseNametoAdd.Editable     = true;
     franchiseNametoAdd.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__franchiseNametoAdd__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__franchiseNametoAdd__ = (System.String)_v_; }, false);
     franchise = Add <__TArray__>("franchise");
     franchise.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__franchise__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__franchise__ = (__Arr__)_v_; }, false);
     noOfHomes = Add <__TLong__>("noOfHomes$");
     noOfHomes.DefaultValue = 0L;
     noOfHomes.Editable     = true;
     noOfHomes.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__noOfHomes__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__noOfHomes__ = (System.Int64)_v_; }, false);
     noOfHomes.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.noOfHomes()
         {
             App = (CorporationVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((CorporationVM)pup).Handle((Input.noOfHomes)input); });
     totalCommission = Add <__TLong__>("totalCommission$");
     totalCommission.DefaultValue = 0L;
     totalCommission.Editable     = true;
     totalCommission.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__totalCommission__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__totalCommission__ = (System.Int64)_v_; }, false);
     totalCommission.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.totalCommission()
         {
             App = (CorporationVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((CorporationVM)pup).Handle((Input.totalCommission)input); });
     averageCommission = Add <__TLong__>("averageCommission$");
     averageCommission.DefaultValue = 0L;
     averageCommission.Editable     = true;
     averageCommission.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__averageCommission__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__averageCommission__ = (System.Int64)_v_; }, false);
     averageCommission.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.averageCommission()
         {
             App = (CorporationVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((CorporationVM)pup).Handle((Input.averageCommission)input); });
     Trend = Add <__TLong__>("Trend$");
     Trend.DefaultValue = 0L;
     Trend.Editable     = true;
     Trend.SetCustomAccessors((_p_) => { return(((__Corporat__)_p_).__bf__Trend__); }, (_p_, _v_) => { ((__Corporat__)_p_).__bf__Trend__ = (System.Int64)_v_; }, false);
     Trend.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Trend()
         {
             App = (CorporationVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((CorporationVM)pup).Handle((Input.Trend)input); });
 }