Loading

摘要: When DbDataAdapter is used to retrieve or update data, it examines the status of the con- nection. If the connection is open, the DbDataAdapter uses the open connection and leaves the connection... 阅读全文
posted @ 2012-05-04 21:28 .net's 阅读(381) 评论(0) 推荐(0)
摘要: A DbDataReader object provides a high-performance method of retrieving data from the data store. It delivers a forward-only, read-only, server-side cursor. This makes the DbDataReader object a... 阅读全文
posted @ 2012-05-04 21:04 .net's 阅读(389) 评论(0) 推荐(0)
摘要: It’s common practice to store connection strings in the Web.config file. This makes it easy to change the connection string without requiring a recompile of the application. However, connec-tion strings can contain logon information such as user names and passwords. You certainly don’t want this inf 阅读全文
posted @ 2012-05-04 16:33 .net's 阅读(401) 评论(0) 推荐(0)
摘要: EXAM TIPRemember for the exam that setting the RemotingFormat property to SerializationFormat.Binary is required to obtain true binary serialization. 阅读全文
posted @ 2012-05-04 15:21 .net's 阅读(297) 评论(0) 推荐(0)
摘要: //read xml file into datasetDataSet vendorData = new DataSet(); vendorData.ReadXmlSchema(desktopFileName("VendorSchema.xsd")); vendorData.ReadXml(desktopFileName("Vendors3.xml"), XmlReadMode.IgnoreSchema); 阅读全文
posted @ 2012-05-04 15:14 .net's 阅读(282) 评论(0) 推荐(0)
摘要: When theXmlWriteMode.WriteSchema is used as parameter, the resulting XML file is substantiallylarger. When few files are being generated for this data, this approach is acceptable,but if many files are being created, it would be better to create a separate XSD file that can beloaded before the data. 阅读全文
posted @ 2012-05-04 15:07 .net's 阅读(756) 评论(0) 推荐(0)
摘要: DataSet cars = new DataSet();cars.WriteXml(desktopFileName("CarWithSchema.xml"), XmlWriteMode.WriteSchema); 阅读全文
posted @ 2012-05-04 14:55 .net's 阅读(305) 评论(0) 推荐(0)
摘要: TheImportRow method is useful when theCurrentand Original data row version must be maintained. For example, after editing a datatable, you might want to copy the changedDataRow objects to a different data table butmaintain theOriginal and Current data row version. The ImportRow method on the DataTab 阅读全文
posted @ 2012-05-04 14:18 .net's 阅读(333) 评论(0) 推荐(0)
摘要: These methods can be executed only onDataRow objects whose row state is Unchanged. 阅读全文
posted @ 2012-05-04 14:11 .net's 阅读(432) 评论(0) 推荐(0)
摘要: Auto incrementing is found in many database products, but how can it possibly workproperly in your application? The connected classes haven’t been covered yet, but you canimagine that at some point you might want to send your new data to a back-end database. Ifyour application supplies the auto-incr 阅读全文
posted @ 2012-05-04 13:48 .net's 阅读(426) 评论(1) 推荐(0)