示例#1
0
        public static void ToRow(Country bean, CountryRow row)
        {
            if (bean == null)
                return;

            row.Id = bean.Id;
            row.ShortName = bean.ShortName;
            row.Name = bean.Name;
        }
示例#2
0
        public static Country ToBean(CountryRow row)
        {
            if (row == null)
                return null;

            var bean = new Country();
            bean.Id = row.Id;
            bean.ShortName = row.ShortName;
            bean.Name = row.Name;
            return bean;
        }