为了支持数据库更新, 我们可以使用SqlCommandBuilder自动生成DataAdapter的InsertCommand, UpdateCommand, 和DeleteCommand属性。 为了支持自动生成, 指定的SelectCommand必须包含主键或唯一性列。如果没有, 则无法生成InsertCommand, UpdateCommand, 和DeleteCommand,并会抛出InvalidOperation异常。关于更详细的信息和例程,请参看以下网页:
Q316758 DOC: Error in SqlCommandBuilder Code Sample
http://support.microsoft.com/support/kb/articles/q316/7/58.aspQ310128 INFO: When to Use FillSchema and MissingSchemaAction
http://support.microsoft.com/support/kb/articles/q310/1/28.asphttp://msdn.microsoft.com/library/en-us/cpguide/html/cpconautomaticallygeneratedcommands.asp