DTO (Data Transfer objects) in C#

By | April 28, 2017

DTO (Data Transfer objects) is a container for passing data between layers. DTO’s are also termed as transfer objects. DTO is used to pass data and does not contain any business logic in it. Setters and Getters are used in DTO.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataTransferObjects
public class DtoCity
public int id { get; set; }
public int CountryId { get; set; }
public string CityName { get; set; }
public string Zipcode { get; set; }
public int status { get; set; }

Leave a Reply

Your email address will not be published. Required fields are marked *