I used BusinessBase class in Ria Services. It works in Csla 4.0 beta version. But now I got a compile error when I use the 4.0.1 version.
The error is: Error 83 Entity 'BusinessApplication7.Web.Services.Company' has a property 'BrokenRulesCollection' with an unsupported type. BusinessApplication7
and my codes is:
[EnableClientAccess()]
public class CompanyDomainService : DomainService
{
public IEnumerable<Company> GetCompanies()
{
List<Company> list = new List<Company>();
Company c = new Company();
c.ID = 1;
list.Add(c);
c = new Company();
c.ID = 2;
list.Add(c);
return list.AsEnumerable();
}
}
public class Company : Csla.BusinessBase<Company>
{
[Key]
public int ID
{
get;
set;
}
public string Name
{
get;
set;
}
}
I have put zero effort into getting CSLA to work with RIA Services. I see these technologies are more of an either/or than complimentary. If you are using either one, it is not clear to me why you'd use the other.
Copyright (c) Marimer LLC