9/12/2013
9/02/2013

[Enterprise Library] Data Access Application Block - NonQuery

1. 在未使用 Enterprise Library 之前原本的做法 public void InsertCust1(String connName) { string sql = @"INSERT INTO CUSTOMERS (customerid, companyname, contactname, contacttitle, " + "address, city, region, postalcode, country, phone, fax) " + "VALUES (:a,:b,:c,:d,:e,:f,:g,:h,:i,:j,:k) "; String connString = ConfigurationManager.ConnectionStrings[connName].ConnectionString; using (OracleConnection connection = new OracleConnection(connString)) ...