|
Field names and field types in the data table are stored in the dataset
dataset ds = ds1;
Now generate the following code:
SqlParameter [] parameters = {
new SqlParameter ("@ lm_id", SqlDbType.Int, 4),
new SqlParameter ("@ news_leixing", SqlDbType.Int, 4)
};
parameters [0] .Value = model.lm_id;
parameters [1] .Value = model.news_leixing; |
|