예제 #1
0
        internal static Addr MapToAddr(FindEndPoint point)
        {
            if (point == null || point.FoundGeo == null)
                return null;

            Addr ret = new Addr();
            ret.TrueCode = point.FoundGeo.Code;
            ret.HouseFlat = (point.Site ?? new Location()).Presentation;
            return ret;
        }
예제 #2
0
파일: Addr.cs 프로젝트: koder05/fogel-ba
 public static void Save(Addr a)
 {
     DbHelper.CreateCommand("update tblAddress set TrueCode=@tcode, HouseFlat=@hf where Id=@id")
         .AddParameter("@tcode", a.TrueCode)
         .AddParameter("@hf", a.HouseFlat)
         .AddParameter("@id", a.AddrId)
         .Execute();
 }