|
請問如何叫用Server上的ConnectionString? |
|
|
在Server端可以通過以下程式: IDbConnection conn1 = this.AllocateConnection("ERPS"); if (conn1.State == ConnectionState.Closed) conn1.Open(); IDbTransaction trans = conn1.BeginTransaction(); this.ExecuteCommand("update/insert/delete....", conn1, trans); ...... trans.Commit(); this.ReleaseConnection("ERPS", conn1);
|
|
|