I noticed the employee class in Employees.generated.cs includes the below two fields:
private IList<Employee> employees1 = new List<Employee>();
[Collection(InverseProperty = "ReportsTo")]
[Storage("employees1")]
public virtual IList<Employee> Employees1
{
get
{
return this.employees1;
}
}
private IList<Order> orders = new List<Order>();
[Collection(InverseProperty = "Employee")]
[Storage("orders")]
public virtual IList<Order> Orders
{
get
{
return this.orders;
}
}
Then I wrote WCF service according to demo and added it into Shell project as service reference. When testing functions such as GetRepresentatives, I would get error "The remote server returned an error: NotFound" at
System.Collections.ObjectModel.ObservableCollection<Telerik.SalesDashboard.Shell.
SalesDashboardServiceReference.Employee> _result = ((System.Collections.ObjectModel.ObservableCollection<Telerik.SalesDashboard.Shell.
SalesDashboardServiceReference.Employee>)(base.EndInvoke("GetRepresentatives", _args, result))); <BR>Seems the type Employee cannot be recognized. I tried many ways, finally, I removed the above two fields. The error disappeared. But I don't know why.