示例#1
0
        public static DbModel.Location.AreaAndDev.Point ToDbModel(this Location.TModel.Location.AreaAndDev.Point item1)
        {
            if (item1 == null)
            {
                return(null);
            }
            var item2 = new DbModel.Location.AreaAndDev.Point();

            item2.Update(item1);
            return(item2);
        }
示例#2
0
 public static DbModel.Location.AreaAndDev.Point Update(this DbModel.Location.AreaAndDev.Point item2, Location.TModel.Location.AreaAndDev.Point item1)
 {
     if (item1 == null)
     {
         return(null);
     }
     item2.Id      = item1.Id;
     item2.X       = item1.X;
     item2.Y       = item1.Y;
     item2.Z       = item1.Z;
     item2.Index   = item1.Index;
     item2.BoundId = item1.BoundId;
     //item2.Bound = item1.Bound.ToDbModel();
     return(item2);
 }
示例#3
0
        public static Location.TModel.Location.AreaAndDev.Point ToTModel(this DbModel.Location.AreaAndDev.Point item1)
        {
            if (item1 == null)
            {
                return(null);
            }
            var item2 = new Location.TModel.Location.AreaAndDev.Point();

            item2.Id      = item1.Id;
            item2.X       = item1.X;
            item2.Y       = item1.Y;
            item2.Z       = item1.Z;
            item2.Index   = item1.Index;
            item2.BoundId = item1.BoundId;
            //item2.Bound = item1.Bound.ToTModel();
            return(item2);
        }