您忘记了告诉
DataAdapter它应该调用
Stored-Procedure:
using (SqlDataAdapter sqlDA = new SqlDataAdapter("up_Select_all", sqlConnect)){ sqlDA.SelectCommand.CommandType = CommandType.StoredProcedure; sqlDA.SelectCommand.Parameters.Add("@ID", SqlDbType.BigInt).Value = pCustomer.CustomerID; sqlDA.Fill(dtBets); return dtBets;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)