关于ASP.NET的 SqlDataSource控件的,谁给我解释一下一下代码
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:BookStorConnectionString %>"
DeleteCommand="DELETE FROM [BookInfo] WHERE [ID] = @original_ID AND [Name] = @original_Name AND [Author] = @original_Author AND [Press] = @original_Press"
InsertCommand="INSERT INTO [BookInfo] ([ID], [Name], [Author], [Press]) VALUES (@ID, @Name, @Author, @Press)"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [BookInfo]"
UpdateCommand="UPDATE [BookInfo] SET [Name] = @Name, [Author] = @Author, [Press] = @Press WHERE [ID] = @original_ID AND [Name] = @original_Name AND [Author] = @original_Author AND [Press] = @original_Press">
<DeleteParameters>
<asp:Parameter Name="original_ID" Type="String" />
<asp:Parameter Name="original_Name" Type="String" />
<asp:Parameter Name="original_Author" Type="String" />
<asp:Parameter Name="original_Press" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="String" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Author" Type="String" />
<asp:Parameter Name="Press" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Author" Type="String" />
<asp:Parameter Name="Press" Type="String" />
<asp:Parameter Name="original_ID" Type="String" />
<asp:Parameter Name="original_Name" Type="String" />
<asp:Parameter Name="original_Author" Type="String" />
<asp:Parameter Name="original_Press" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>