Hello,
I've created a RIA class library that contains an LLBLGEN DAL. I created a simple AccountsDomainService. To verify that it works properly, I created a Silverlight application as part of the solution and performed a GetAccounts() query. It works great! I unloaded the test application from the solution and built a release version of the class library.
Now that I know that it works... I went to our real production Silverlight application and added a reference from its .Web project to the Accounts.Web DLL. Next, I added a reference in our real Silverlight application client project to the Account's client DLL. I compiled the solution and I am getting the following compilation error:
"Entity 'ABitOfHelp.Accounts.DAL.EntityClasses.AccountEntity' has a property 'Fields' with an unsupported type."
I don't understand why the Accounts DLL would work in its own solution, but generate this error when used as a DLL. When I comment out the GetAccounts() query in the AccountsDomainService, the compilation error disappears.
I would really appreciate any ideas that you may have to offer...
Here is the simple query in the AccountsDomainService:
namespace ABitOfHelp.Accounts
{
// TODO: Create methods containing your application logic.
[EnableClientAccess()]
[RequiresAuthentication]
public class AccountsDomainService : LLBLGenProDomainService2
{
protected override SD.LLBLGen.Pro.ORMSupportClasses.IDataAccessAdapter CreateDataAccessAdapter()
{
return new DataAccessAdapter();
}
[Query]
public IQueryable<AccountEntity> GetAccounts()
{
IQueryable<AccountEntity> accounts = null;
var adapter = new DataAccessAdapter();
LinqMetaData linq = new LinqMetaData(adapter);
accounts = (from a in linq.Account
select a);
return accounts;
}
}
}