Dapper 更新数据
1.页面代码
<Window x:Class="InsertDapper.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:InsertDapper"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="1000" Loaded="Window_Loaded">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="397*"/>
<ColumnDefinition Width="77*"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="tb1" HorizontalAlignment="Left" Height="46" Margin="424,144,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="226"/>
<TextBox x:Name="tb2" HorizontalA