打印本文 打印本文 关闭窗口 关闭窗口
Asp.Net(C#)+Sql Server三层架构下数据存取方案(四)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数4487  更新时间:2007/11/14 11:04:35  文章录入:mintao  责任编辑:mintao
              if(score!=-1)

                   sqlParameterList.Add(data.MakeInParam("@Score",  SqlDbType.Int, 4,    score));

              if(bB!=-1)

                   sqlParameterList.Add(data.MakeInParam("@BB",  SqlDbType.Int, 4,  bB));

              if(buyType!=-1)

                   sqlParameterList.Add(data.MakeInParam("@BuyType",  SqlDbType.Int, 4,  buyType));

              if(functionState!=-1)

                   sqlParameterList.Add(data.MakeInParam("@FunctionState",  SqlDbType.Int, 4, functionState));

 

              SqlParameter[] prams= new SqlParameter[sqlParameterList.Count];

              for( int i=0;i<sqlParameterList.Count;i++)

              {

                   prams[i]=(SqlParameter)sqlParameterList[i];

              }

              #endregion

              try

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页

打印本文 打印本文 关闭窗口 关闭窗口