コード例 #1
0
        protected override Location ExecuteProcedure()
        {
            Location location = LocationCommon.FindBy(_id, QueryLevel.Single);

            SetLocation(location);
            SaveTo(location);
            return(location);
        }
コード例 #2
0
 private void SetParent(Location location)
 {
     if (this.ParentId != null)
     {
         var parent = LocationCommon.FindBy(this.ParentId.Value, QueryLevel.Single);
         if (!parent.IsEmpty())
         {
             location.Parent = parent;
         }
     }
 }