which approach is better and more correct.
class Project
int Id
string Name
int CategoryId
OR
class Project
int Id,
string Name
Category CategoryId
which approach is better and more correct.
class Project
int Id
string Name
int CategoryId
OR
class Project
int Id,
string Name
Category CategoryId
IMHO the domain classes, and not only, moreover, all classes should be declared at singular as they represent a type.
Project, rather than Projects, as each instance will represent a single project.