Welcome to MSDN Blogs Sign in | Join | Help

September 2008 - Posts

Silverlight 2 RC0 Is Available

相關資訊及下載位置請參考: http://silverlight.net/GetStarted/sl2rc0.aspx
Posted by jchiou | 1 Comments
Filed under:

LINQ to SQL 第五集 - 如何比對日期欄位的資料

取得訂單日期為 1998 年的資料,當然也可以比對 月(Month)  或  日(Day)。 using System; using System.Linq; using System.Windows.Forms; namespace LinqToSql {     public partial class MainForm : Form     {        
Posted by jchiou | 1 Comments
Filed under: ,

LINQ to SQL 第四集 - 如何取得 欄位 中 包含 某些特定字元的資料

如何取得 產品名稱 中 包含 ch 字元的資料,程式碼如下: using System; using System.Linq; using System.Windows.Forms; namespace LinqToSql {     public partial class MainForm : Form     {         public MainForm()
Posted by jchiou | 1 Comments
Filed under: ,

LINQ to SQL 第三集 - 如何取得 產品名稱長度 小於 10 字元的資料

筆者陸續介紹一些字串處理的使用方法 如何取得 產品名稱長度 小於 10 字元的資料,程式碼如下: using System; using System.Linq; using System.Windows.Forms; namespace LinqToSql {     public partial class MainForm : Form     {        
Posted by jchiou | 1 Comments
Filed under: ,

ADO.NET 2.0 之 SqlConnectionStringBuilder

一直以來在指定連線字串時,我們都會習慣使用下列的方式, string strConn = @"Data Source=.\SQLExpress;Integrated Security=True;Pooling=False"; 在 ADO.NET 2.0 後,多了另一個選擇 Connection String Builder。 什麼是 SqlConnectionStringBuilder 呢? 連接字串產生器可讓開發人員使用類別的屬性和方法,以程式設計的方式建立語法正確的連接字串,並剖析和重建現有的連接字串。該類別也使管理應用程式組態檔中儲存的連接字串更加容易。

如何證明 ADO.NET 預設有使用 Connection Pooling 的機制

使用 Connection Pooling 的機制,可以加快我們存取資料庫的速度。 預設 ADO.NET 是開啟 Connection Pooling 的,那要如何證明呢? 筆者用一個小程式,取得 InnerConnection 來做比較,在有開啟 Connection Pooling 下,因兩個物件相同,故會得到 True。 如下圖: 若將連線字串改為 @"Data Source=.\SQLExpress;Integrated Security=True;Pooling=False";

LINQ to XML 簡介

現在的應用程式開發中,XML 已被廣泛採用為格式化各種內容資料的方式。您可以在 Web、組態檔、Microsoft Office Word 檔案與資料庫中看到 XML 的運用。   LINQ to XML 是一個以 LINQ 為基礎,可讓您從 .NET Framework 程式設計語言內使用及操作 XML。   LINQ to XML 是經過重新設計,用以進行 XML 程式設計的最新方法。它提供文件物件模型 (DOM) 的記憶體中文件修改能力,而且支援 LINQ 查詢運算式。雖然這些查詢運算式在語法上與
Posted by jchiou | 2 Comments
Filed under: ,

LINQ 簡介

Language-Integrated Query (LINQ) 對開發人員來說是一個突破性創舉,它填補了物件與資料之間的差距。   傳統上,資料查詢是以簡單的字串表示,既不會在編譯時期進行型別檢查,也不支援 IntelliSense。此外,您還必須針對 每種 資料來源學習 不同的 查詢語言:SQL 資料庫、XML 文件、各種 Web 服務等等。LINQ 將「查詢」(Query) 只要使用語言關鍵字和您熟悉的運算子,就可以針對強型別的物件集合撰寫查詢。   簡而言之,LINQ
Posted by jchiou | 2 Comments
Filed under: ,

LINQ to SQL 第二集 - Debug Visualizer

LINQ to SQL 可以讓我們很方便的操作資料庫的內容,但若遇到問題或是需要去細看其所執行的 T-SQL及結果,在 Visual Studio 中就不是那麼方便了。 如下圖,T-SQL 語法無法完全顯示,需將 T-SQL 貼到 SQL Server 的管理工具或其它工具才較方便查看。 筆者有使用一個小工具 LINQ to SQL Debug Visualizer,讓我們在 Visual Studio 中可以更方便檢視 LINQ 所執行的 T-SQL。 由於 VS 2008 並沒有內建這個小工具,需要額外下載及安裝。

LINQ to SQL 第一集

LINQ 如何與 SQL Server 資料庫整合?Visual Studio 2008 又有那些方便的功能可以協助我們呢? 今天筆者建立一個簡單的 Windows Form 的應用程式 + 不到 10 行的程式碼來示範這個部份。 步驟如下: 1. 開啟 VS 2008 並新增一個 Windows Form 專案,命名為『LinqToSql』 2. 拖工具箱拖一個 DataGridView 到表單上,並設定『Dock in parent container』 3. 對專案加入一毎新項目『LINQ

SQL Server 2008 的累積更新程式套件 1 發佈了

SQL Server 2008 的累積更新程式套件 1 已於今天公佈了。 累積更新 1 包含 Microsoft SQL Server 2008 RTM 版後修正的問題及發行的 Hotfix。 安裝成功後的版本號為:10.00.1763.00 詳細說明及下載資訊: http://support.microsoft.com/kb/956717/en-us
Posted by jchiou | 2 Comments
Filed under:

使用 Silverlight 2 建立以資料為中心的 Web 應用程式

在 September 2008 份的 MSDN Magazine , Shawn Wildermuth 撰寫了 如何使用 ADO.NET Data Services and LINQ simplify support for data operations 在 Silverlight 的應用程式中. 可以 在線上直接瀏覽程式碼 , 也可以在 MSDN Magazine 中查看更多有關 ADO.NET 的文章。 Enjoy.
Posted by jchiou | 2 Comments

參加『Using VSTS and TFS for Application Lifecycle Management』的會後心得

微軟創新中心 ( Microsoft Innovation Centre ) 在今年六月成立後,一連會邀請許多在微軟總部工作的資深員工來台灣分享有關軟體工程的主題,以及微軟內部運作的情況。   在 9/10 邀請了現任職於微軟公司美國總部資訊系統部 (MSIT) 的資深開發同事蔡英季,分享微軟 HRIT 如何開發、管理公司使用人事相關的系統的過去、現在及未來。其中也有許多問題是大家都會遇到的,他們如何克服?   先簡介一下 HRIT: HRIT 目前有140 員工 (includes

如何在 TFS 2005 中建置(Build) VS 2008 的專案

這個問題在昨天也有朋友問到。預設您無法在 Team Foundation Server 2005 中建置 VS 2008 的專案,若您的 Team Foundation Server 無法升級到 2008 的版本,又一定要在 TFS 2005 中建置 VS 2008 的專案,請參考同事的文章: Building VS 2008 projects with TFS 2005 動一點小手腳即可讓 TFS 2005 建置 VS 2008 的專案。

在 TFS 中如何回復已被刪除的檔案

昨天有朋友問到在方案簽入 Team Foundation Server 後,不小心誤刪了專案中的檔案,要如何回復? 步驟如下: 開啟 Team Explorer => 工具 => 選項 在『原始檔控制』=> 啟用『在原始檔控制總管中顯示刪除的項目』 再重新整理該結點後,即可看到『已刪除』的檔案 在該檔案按右鍵 => 取消刪除   在將變更簽入即可 筆者的環境為 Team Foundation Server 2008
Posted by jchiou | 2 Comments

SharePoint Designer vs. InfoPath vs. Visual Studio vs. Excel Services

在 SharePoint 平台上,可以自行做各式各樣的擴充、客製化等,SharePoint Designer 、 InfoPath 、 Visual Studio 及 Excel Services 是大家最常討論及使用的,各自的適用時機、用槍時機為何?請繼續往下讀:   · SharePoint Designer : you are bound to use it in almost any project to build the design for a SharePoint
Posted by jchiou | 1 Comments

Microsoft® SQL Server® 2008 Express 相關下載連結

Express 版本的 SQL Server 對自學的朋友或是 ISV的伙伴是很有用的,筆者將相關的連結整理如下:   Microsoft® SQL Server® 2008 Express Microsoft SQL Server 2008 Express 是功能強大而可靠的資料管理系統,可為內嵌的應用程式用戶端、簡易的 Web 應用程式和本機資料存放區,提供豐富的功能、資料保護和效能。   Microsoft® SQL Server®
Posted by jchiou | 2 Comments
Filed under:

Microsoft Exchange Server MAPI Client and Collaboration Data Objects 1.2.1

The Messaging API is a COM-like API that provides access to the contents of messaging stores. CDO 1.2.1 (Collaboration Data Objects, version 1.2.1) is a package providing access to Outlook-compatible objects through a COM-based API. Using either CDO or
Posted by jchiou | 1 Comments
Filed under:

Internet Explorer Application Compatibility VPC Image

在 Windows XP SP3 及 IE8 Beta2 發佈後,可以下載下載相關的虛擬機器來測試應用程式。 IE6-XPSP3_VPC.exe contains a Windows XP SP3 with IE6 VHD file IE7-XPSP2_VPC.exe contains a Windows XP SP2 with IE7 VHD file IE8B2-XPSP3_VPC.exe contains a Windows XP SP3 with IE8 Beta 2 VHD file IE7-VIS1.exe+IE7-VIS2.rar+IE7-VIS3.rar
Posted by jchiou | 1 Comments
Filed under: ,

Developing Custom Applications with SharePoint Server 2007

Learn how to build a business solution leveraging a broad range of Microsoft Office SharePoint Server 2007 Enterprise capabilities. This white paper focuses on the real-world example of an application to help consulting companies track client engagements
Posted by jchiou | 3 Comments

Visual Studio Team System Web Access 2008 SP1 Power Tool

Team System Web Access 為免費下載,將會加入 Visual Studio Team System 未來發行版本中。您也可以和經過授權的 Team Foundation Server 一起安裝。您必須是經過授權的 Team Foundation Server 使用者,才能使用 Team System Web Access。 Service Pack 1 中的新功能 僅限檢視工作項目 適用於沒有用戶端存取授權的使用者。[之前又稱為「工作項目 Web Access」(WIWA) 功能]
Posted by jchiou | 2 Comments
Filed under: ,

ASP.NET Hosting Deployment Guide

This white paper provides an overview of the features and benefits of Microsoft® ASP.NET 3.5. Hosters who offer ASP.NET hosting will be able to use the setup and configuration recommendations to integrate ASP.NET into their hosting solution. This
Posted by jchiou | 1 Comments

Windows Home Server Developer Guidelines

This document is a supplement to the Software Development Kit (SDK) for Windows Home Server, and it provides guidelines for developers who are writing applications for Windows Home Server. Follow these guidelines to improve the user experience of your
Posted by jchiou | 1 Comments
Filed under:

Internet Explorer Application Compatibility

The Internet Explorer Application Compatibility article describes in detail the application compatibility events that are logged by Windows Internet Explorer 8 and Internet Explorer 7. These events are used by the Microsoft Application Compatibility Toolkit
Posted by jchiou | 2 Comments
Filed under: ,

CRM 4.0 發佈新版的 Software Development Kit (SDK) v4.0.6

在 8/29 日 CRM 4.0 SDK 發佈 v4.0.6 版,其更新包含: E-mail Provider documentation Customization file reference Updated Plug-in sample code Using CRM URLs and the PrependOrgName functiondeployments. New sample code Check the Release History table for a complete list
Posted by jchiou | 2 Comments
Filed under:

Web Deployment Projects (WDP)

Web Deployment Projects (簡稱:WDP) 可以提供使用 Visual Studio 2005 或 2008 在建置部署 Web Site (網站)專案時,更多的彈性及方法。 另一個筆者選擇寫 WDP 的原因:若您使用 Web Site (網站)專案 要整合到 Team Foundation Server 中,再與 Team Build 結合,那目前一定要使用 Web Deployment Projects。   今天先整理 WDP 的基本資訊及下載位置。  
 
Page view tracker