class CustomerDal_ORM : MyDal
{
// 请注意:这个delegate方法被限制为private访问权限
private ArrayList GetAllCustomers_Remoting_delegate()
{
ArrayList al = null;
RemoteCustomer remote = (RemoteCustomer)Activator.GetObject(
typeof(RemotingClass.RemoteCustomer),
Helper.GetApplicationSetting("RemotingUrl"));
if (remote == null)
throw new Exception("Could not locate server!");
else
{
al = remote.GetAllCustomers();
}
return al;
}
}