예제 #1
0
 void Handle(Input.AddCorpButton addCorpButton)
 {
     Db.Transact(() =>
     {
         Corporation corp = new Corporation();
         corp.Name        = Name;
     });
     UpdateCorps();
 }
예제 #2
0
 void Handle(Input.AddFranchiseButton addFranchiseButton)
 {
     Db.Transact(() =>
     {
         Corporation corp     = (Corporation)Data;
         Franchise franchise  = new Franchise();
         franchise.Name       = FranchiseName;
         franchise.ParentCorp = corp;
     });
     UpdateFranchiseList();
 }
예제 #3
0
        void UpdateFranchiseList(string orderProperty = "Name")
        {
            Corporation corp = (Corporation)Data;

            FranchiseList = Db.SQL <Franchise>("SELECT f FROM Franchise f WHERE f.ParentCorp = ? ORDER BY f." + orderProperty, corp);
        }