예제 #1
0
 public static void O2Db(LightZone obj, EFData.LightZone dbObj)
 {
     dbObj.Name      = obj.Name;
     dbObj.IsNode    = obj.IsNode;
     dbObj.PointType = (EFData.PointTypeEnum)obj.PointType;
     dbObj.Remark    = obj.Remark;
 }
예제 #2
0
        /****************************************************************/

        #region LightZone

        public static void Db2O(EFData.LightZone dbObj, LightZone obj)
        {
            obj.Id        = dbObj.Id;
            obj.Name      = dbObj.Name;
            obj.IsNode    = dbObj.IsNode;
            obj.PointType = (LS_Library.PointTypeEnum)dbObj.PointType;
            obj.Remark    = dbObj.Remark;
            obj.Partition = new Partition();
            Db2O(dbObj.Partition, obj.Partition);
            obj.ControlSpace = new ControlSpace();
            Db2O(dbObj.ControlSpace, obj.ControlSpace);
        }