Loading

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 39 下一页
摘要: It’s important to note that a cascading delete in the Entity Framework works only if the de-pendent entity objects are loaded. This can be accomplished using the Include or Load meth-ods. 阅读全文
posted @ 2012-05-08 14:22 .net's 阅读(341) 评论(0) 推荐(0)
摘要: EXAM TIPFor the exam, understand that the XmlReader provides the fastest means to access XML data and is read-only, forward-only. 阅读全文
posted @ 2012-05-07 13:46 .net's 阅读(334) 评论(0) 推荐(0)
摘要: The DataContext object manages object identity for you so that rows retrieved from the database table are automatically logged in the DataContext object’s internal identity table by the row’s primary key when the object is created. If the same row is retrieved again by this DataContext object, the o 阅读全文
posted @ 2012-05-07 11:15 .net's 阅读(366) 评论(0) 推荐(0)
摘要: Transactions have four essential attributes: atomicity, consistency, isolation, and durability (known as the ACID attributes). ■ Atomicity The work cannot be broken into smaller parts. Although... 阅读全文
posted @ 2012-05-05 09:47 .net's 阅读(469) 评论(0) 推荐(1)
摘要: 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)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 39 下一页