design the interface
- by hotyi
i want to design an interface has the function to do mapping from Entity object to Form object
public interface IFormToEntityMapper
{
TEntity Map(TForm tForm);
}
and vise versa.
public interface IEntityToFormMapper
{
TForm Map(TEntity tEntity);
}
i have the question if i should define these two functions in one interface and seperate them to different interface. if i put them into one interface, does that violate the SRP?