I have a class method GetMS()
as defined below, but when the method is called I get an error stating \'SLRD\' has no parameterless constructor.
I don\'
The error you get is pretty clear. You missed to define a parameterless constructor.
public class SLR : BaseEntity
{
public SLR() : base
{
}
// ...
public virtual ICollection ChildRequests { get; set; }
}
The reason this is happens is the fact that your base class may have a parameterless constructor. So you have to define one for the derived class, SLR
.