This question is locked. New answers and comments are not allowed.
Hello,
In the server side I created this method to query an Oracle View that I mapped through reverse mapping:
public IQueryable<CustomView> GetPatientByNameAndSexAndAgeBetween()
{
using (POCEntitiesModel sem = new POCEntitiesModel())
{
try
{
IList<CustomView> result = sem.CustomViews.ToList();
return result.AsQueryable();
}
catch (Exception)
{
throw;
}
}
}
In the client side (Silverlight 5), I use a RadGridView to show data:
public partial class MainPage : UserControl
{
POCDomainContext ctx = new POCDomainContext();
public MainPage()
{
InitializeComponent();
EntityQuery<CustomView> query = ctx.GetPatientByNameAndSexAndAgeBetweenQuery();
LoadOperation<CustomView> lo = ctx.Load<CustomView>(query);
dgSearchResults.ItemsSource = lo.Entities;
}
}
=====>When I run it, I get System.ServiceModel.DomainServices.Client.DomainOperationException!
In the server side I created this method to query an Oracle View that I mapped through reverse mapping:
public IQueryable<CustomView> GetPatientByNameAndSexAndAgeBetween()
{
using (POCEntitiesModel sem = new POCEntitiesModel())
{
try
{
IList<CustomView> result = sem.CustomViews.ToList();
return result.AsQueryable();
}
catch (Exception)
{
throw;
}
}
}
In the client side (Silverlight 5), I use a RadGridView to show data:
public partial class MainPage : UserControl
{
POCDomainContext ctx = new POCDomainContext();
public MainPage()
{
InitializeComponent();
EntityQuery<CustomView> query = ctx.GetPatientByNameAndSexAndAgeBetweenQuery();
LoadOperation<CustomView> lo = ctx.Load<CustomView>(query);
dgSearchResults.ItemsSource = lo.Entities;
}
}
=====>When I run it, I get System.ServiceModel.DomainServices.Client.DomainOperationException!