I have a question. I don't really know if it's possible. I'm working on an MVC application and part of the model look like this:
public class EmployeeNewspaper
{
public string Name { get; set; }
[Key]
public string Appendage { get; set; }
public string SourceInformationName { get; set; }
}
So my question is: Is it possible to have two keys in the same class? Or what can I do? I need to have the name and the appendage unique. Is it possible?