示例#1
0
 /// <summary>
 /// 根据ID查询一条记录
 /// </summary>
 public M_Promotion SelReturnModel(int ID)
 {
     using (SqlDataReader reader = Sql.SelReturnReader(strTableName, PK, ID))
     {
         if (reader.Read())
         {
             return(initMod.GetModelFromReader(reader));
         }
         else
         {
             return(null);
         }
     }
 }
示例#2
0
 public M_Promotion SelReturnModel(int ID)
 {
     using (DbDataReader reader = DBCenter.SelReturnReader(TbName, PK, ID))
     {
         if (reader.Read())
         {
             return(initMod.GetModelFromReader(reader));
         }
         else
         {
             return(null);
         }
     }
 }