Exemple #1
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__Franchis__);
     Properties.ClearExposed();
     Html = Add <__TString__>("Html");
     Html.DefaultValue = "/Usama/FranchiseBussines.html";
     Html.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Html__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Html__ = (System.String)_v_; }, false);
     franchise = Add <__FfrSchema__>("franchise", bind: "franchise");
     franchise.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__franchise__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__franchise__ = (__Frfranchis__)_v_; }, false);
     Save = Add <__TLong__>("Save$");
     Save.DefaultValue = 0L;
     Save.Editable     = true;
     Save.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Save__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Save__ = (System.Int64)_v_; }, false);
     Save.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Save()
         {
             App = (FranchiseDetailVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((FranchiseDetailVM)pup).Handle((Input.Save)input); });
     Accounts = Add <__FAcSchema__>("Accounts", bind: "Accounts");
     Accounts.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Accounts__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Accounts__ = (__FrAccounts__)_v_; }, false);
     Registor = Add <__TLong__>("Registor$");
     Registor.DefaultValue = 0L;
     Registor.Editable     = true;
     Registor.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Registor__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Registor__ = (System.Int64)_v_; }, false);
     Registor.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Registor()
         {
             App = (FranchiseDetailVM)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((FranchiseDetailVM)pup).Handle((Input.Registor)input); });
     AccountsList = Add <__TArray__>("AccountsList");
     AccountsList.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__AccountsList__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__AccountsList__ = (__Arr__)_v_; }, false);
     Address = Add <__TString__>("Address");
     Address.DefaultValue = "";
     Address.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Address__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Address__ = (System.String)_v_; }, false);
 }