static CustomClassCache() { if (Program.EnableRemoting) { mDataTableProxy = DataTableServerProxy.GetDataTableProxy(); } }
public static void EnableRemoting(bool enable) { mEnableRemoting = enable; if (mEnableRemoting) { mDataTableProxy = DataTableServerProxy.GetDataTableProxy(); } }
static Helper() { if (Program.EnableRemoting) { mDataTableProxy = DataTableServerProxy.GetDataTableProxy(); } mCommands = new Dictionary<int, SqlCommand>(); }
/// <summary> /// 获取数据表远程代理 /// </summary> /// <returns></returns> public static DataTableProxy GetDataTableProxy() { if (mDataTableProxy == null) { IDataTableRemoting remoting = mRemotingSystem.GetDataTableRemoting(mNetClient.ClientKey); mDataTableProxy = new DataTableProxy(remoting); } return mDataTableProxy; }
/// <summary> /// 获取数据表远程代理 /// </summary> /// <returns></returns> public static DataTableProxy GetDataTableProxy() { if (mDataTableProxy == null) { IDataTableRemoting remoting = mRemotingSystem.GetDataTableRemoting(mNetClient.ClientKey); mDataTableProxy = new DataTableProxy(remoting); } return(mDataTableProxy); }
public UniteModel(string mdlname) { InitializeComponent(); bool bRet = false; if (Program.EnableRemoting) { mDataTableProxy = DataTableServerProxy.GetDataTableProxy(); bRet = mDataTableProxy.UTExistDatabase(Program.Database); } if (!bRet) { MessageBox.Show("本库不是主干或分技或没有连接远程数据服务"); RunUnite = false; return; } mModelName = mdlname; InitTables(); }