I work on data layer in my project, where I need create mappers for stored data in xml and in database. What is the best practice for that? Should I use Mapper design patter or is any better solution?
For example:
public class Task
{
public int Id { get; set; }
public string Name { get; set; }
public string Text { get; set; }
public DateTime Deadline { get; set; }
public int EnteredEmployeeId { get; set; }
public int ResponsibleEmployeeId { get; set; }
public int StateId { get; set; }
public int DefficultyId { get; set; }
}
This is my entity. How will be mappers looks like please? Thanks
Aucun commentaire:
Enregistrer un commentaire