This project is read-only.

Service object UWAS.Services.PractitionerService should have no fields, but has XXX error

May 21, 2013 at 11:12 AM
Hi Guys,
         I am getting this error, but my service does not have any value/object properties apart from the repositories. The error should probably say that injected object properties are allowed?
public class PractitionerService : IPractitionerService
    {
        
        public PractitionerContextRepository PractitionerContextRepository { set; protected get; }
        public PractitionerRepository PractitionerRepository { get; protected set; }

   ...
 }
Regards,
           Alistair
May 21, 2013 at 11:59 AM
The problem is your second injected service property:
public PractitionerRepository PractitionerRepository { get; protected set; }
should be:
public PractitionerRepository PractitionerRepository { set; protected get; }
(like the first one).