There's my working environment here.
LLBLGen Pro. V2.5
Generating code for .NET1.0, C#, Adapter
The application was running on a .NET remoting architecture.
Here's the server site code.
public class DataAccess : MarshalByRefObject, IDataAccess
{
public OrderEntity GetOrder(int orderId)
{
OrderEntity order = new OrderEntity(orderId);
IPrefetchPath2 ppath = new PrefetchPath2(EntityType.OrderEntity);
ppath.Add(OrderEntity.PrefetchPathCustomer);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntity(order, ppath);
}
return order;
}
and here's the client code.
string url = "tcp://172.16.1.35:1668/DataAccess";
da = (IDataAccess)Activator.GetObject(typeof(IDataAccess), url);
OrderEntity order = da.GetOrder(1);
Then, I got a 'System.Reflection.TargetInvocationException' error.
But, if the prefetch path code be marked, the application will run well.
ppath.Add(OrderEntity.PrefetchPathCustomer);
I've already tried to work on .NET 2.0 for the same application with prefetch path. Fortunately, it's working.
So, can the prefetch paths work on .NET1.0 and remoting?