[AccessDataSource] Office Access 2010 / 2013 與 Microsoft.ACE.OLEDB

當您使用 AccessDataSource時,會出現警告訊息:

'Microsoft.ACE.OLEDB.12.0' 提供者並未登入於本機電腦上。
'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

請到此下載軟體 ( AccessDatabaseEngine.exe ),安裝後可以解決 (此為 正體中文版)

...繼續閱讀 »

[ADO.NET] Web Form為求快速,可使用 DataReader直接處理資料來源

引述「Professional in ASP.NET 4 in C# and VB / Wrox出版」
在大多數處理 Web Form的情況下,都應使用 DataReader,而不是創建 DataSet。

微軟MSDN網站有提到 -- ASP.NET效能概觀
如果可行的話,請使用 SqlDataReader 類別,因為該類別提供的效能比 DataSet 類別好。

...繼續閱讀 »

DataSet / LinqDataSource / EntityDataSource(查詢產生器)三種方式,在資料新增上的異同。Comparing the difference of Code-Behind about DataSet and LinqDataSource and EntityDataSource to Insert DB a new Record.

這些範例都在書本「下集」,

我只是彙整起來作一個比較,希望讀者比較清楚三種寫法的差異。

My book has published these samples.

Now, I comare these 3 samples and try to explain the difference for coding in DataSet, LinqDataSource and EntityDataSource.

...繼續閱讀 »