将SqlHelper Class部署为Remote Object可行吗?

将SqlHelper Class部署为Remote Object可行吗?

 

SqlHelper ClassMicrosoft提供的Data Access Application Block for .NET,相信很多人都在使用。

现在准备将SqlHelper Class部署在IIS环境下的Remote Object,大致想法是:

1. 修改Sqlhelper Class继承MarshalByRefObject Class,如下所示:

public sealed class SqlHelper : MarshalByRefObject

 

2. 作为Remote Object部署在IIS中。

 

大家觉得这样是否可行?如果可行,会不会存在什么负面的问题?

***

目标是可以将调用SqlHelper Class的应用程序,瞬间改为基于.Net RemotingApplication

 

Reference Links:

(1) Microsoft Data Access Application Block for .NET, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp

原文地址:https://www.cnblogs.com/rickie/p/48386.html