SqlConnection con = new SqlConnection(conn);
SqlDataAdapter sda = new SqlDataAdapter(string.Format(@"select * from {0} where 1=1 {1}", model.TableName, filter), conn);
SqlCommandBuilder cb = new SqlCommandBuilder(sda);
cb.RefreshSchema();
dt.PrimaryKey = new DataColumn[] { dt.Columns["F_seq"] };
sda.Update(dt);
return true;
换了方法,这个还是不知道哪里的问题