Exemple #1
0
            public static Device Map(tbl_ImageDevice img)
            {
                Device ret = new Device();

                ret.Height      = img.Height;
                ret.ID          = img.ID;
                ret.IsDefault   = img.IsDefault;
                ret.Name        = img.Name;
                ret.Orientation = (DeviceOrientation)img.Orientation;
                ret.ShortName   = img.ShortName;
                ret.UserAgent   = img.UserAgent;
                ret.Width       = img.Width;
                return(ret);
            }
Exemple #2
0
            public tbl_ImageDevice Map()
            {
                tbl_ImageDevice ret = new tbl_ImageDevice();

                ret.ID          = this.ID;
                ret.Height      = this.Height;
                ret.IsDefault   = this.IsDefault;
                ret.Name        = this.Name;
                ret.Orientation = Convert.ToInt32(this.Orientation);
                ret.ShortName   = this.ShortName;
                ret.UserAgent   = this.UserAgent;
                ret.Width       = this.Width;
                return(ret);
            }