Let’s say that I want to implement following interface:
public interface ICar
{
bool IsMoving();
bool IsRegistered();
int CurrentSpeed {get; set;}
}
public class Car : ICar
{
public int CurrentSpeed {get; set;}
public bool IsMoving()
{
// some logic here
}
}
Does this IsMoving() method break poco definition?
Check this link DTO ver POCO
POCO vs DTO
The cite (but read the link and follow other links there)
Other words, it is absolutely OK, if POCO has behavior.
The requirementfor POCO is unaware of the persistence