Esempio n. 1
0
 /// <summary>
 /// 同时会填充等级名称
 /// </summary>
 /// <param name="dr"></param>
 /// <returns></returns>
 public Models.DbModels.app FillModel(DataRow dr)
 {
     Models.DbModels.app model = new DbModels.app();
     model.appid = dr["appid"].ToString();
     model.appsecret = dr["appsecret"].ToString();
     model.apptype = Convert.ToInt32(dr["apptype"]);
     model.appgradeno = Convert.ToInt32(dr["appgradeno"]);
     model.appdesc = dr["appdesc"].ToString();
     model.appgrade = new DbModels.appgrade();
     model.appname = dr["appname"].ToString();
     model.appgrade.appgradeno = model.appgradeno;
     model.appgrade.appgradename = dr["appgradename"].ToString();
     return model;
 }
Esempio n. 2
0
 /// <summary>
 /// 同时会填充等级名称
 /// </summary>
 /// <param name="dr"></param>
 /// <returns></returns>
 public Models.DbModels.app FillModel(DataRow dr)
 {
     Models.DbModels.app model = new DbModels.app();
     model.appid                 = dr["appid"].ToString();
     model.appsecret             = dr["appsecret"].ToString();
     model.apptype               = Convert.ToInt32(dr["apptype"]);
     model.appgradeno            = Convert.ToInt32(dr["appgradeno"]);
     model.appdesc               = dr["appdesc"].ToString();
     model.appgrade              = new DbModels.appgrade();
     model.appname               = dr["appname"].ToString();
     model.appgrade.appgradeno   = model.appgradeno;
     model.appgrade.appgradename = dr["appgradename"].ToString();
     return(model);
 }