예제 #1
0
        public static KindOfField ConvertFromDTO(KindOfFieldDTO kd)
        {
            KindOfField k = new KindOfField();

            k.KindOfFieldId = kd.KindOfFieldId;
            k.Name          = kd.Name;
            return(k);
        }
예제 #2
0
        public static KindOfFieldDTO ConvertToDTO(KindOfField k)
        {
            KindOfFieldDTO kd = new KindOfFieldDTO();

            kd.KindOfFieldId = k.KindOfFieldId;
            kd.Name          = k.Name;
            return(kd);
        }
예제 #3
0
        public static List <KindOfFieldDTO> ConvertToListOfDTO(List <KindOfField> lk)
        {
            List <KindOfFieldDTO> lkd = new List <KindOfFieldDTO>();

            for (int i = 0; i < lk.LongCount(); i++)
            {
                KindOfFieldDTO kd = new KindOfFieldDTO();
                kd.KindOfFieldId = lk[i].KindOfFieldId;
                kd.Name          = lk[i].Name;
                lkd.Add(kd);
            }
            return(lkd);
        }