我有一个简单的DomainService: [EnableClientAccess]
public class DomainService1 : IDomainService1
{
[Query(IsComposable = true)]
public IEnumerable<int> GetCollection(int from, int count)
{
我在使用SL4 RIA实体时缺少一些非常基本的东西。 我有一个域服务User实体。在服务方面,我有一个方法: EntityQuery<User> GetUsersQuery() 我执行负载像这样: context.Load(context.GetUsersQuery(), (loadOp)=>
{
// Things done when the load is completed
}
是否可以将事件添加到域服务类? 我有一个方法,必须检查大约1000条记录在数据库中的某些东西,我希望在域服务中这样做,因为从服务器端向客户端和从客户端加载所有数据似乎有点无用端将其发送回服务器端以由存储过程处理。 因此,仍然能够向用户显示过程的哪个点,我想要一个事件,我可以在客户端调用它显示正在处理的当前记录(如数字)。 我用我所知道的唯一途径的尝试: public delegate void C
我试图从我的DomainService类中将IQueryable拉到使用RIA服务的XAML代码后面。 DomainService从BLL中抽取,BLL从DAL中抽取,从DAL中获取它。 我似乎无法访问XAML中的外部表,但我可以在DomainService方法中很好地访问它。 该方法的DomainService看起来像这样... public IQueryable<MenuHeader> Get
我努力学习,特别是使用起订量实现TDD设置,我碰到了一个设计,我无法弄清楚如何嘲笑: namespace RIACompletelyRelativeWebService.Web.Services
{
[EnableClientAccess]
public class AncestorDomainService : TableDomainService<AncestorEnti