/// <summary>
 /// 得到一个对象实体
 /// </summary>
 public ECommerce.Admin.Model.RegisterUserInfo DataRowToModel(DataRow row)
 {
     ECommerce.Admin.Model.RegisterUserInfo model=new ECommerce.Admin.Model.RegisterUserInfo();
     if (row != null)
     {
         if(row["RUID"]!=null && row["RUID"].ToString()!="")
         {
             model.RUID=Convert.ToInt32(row["RUID"].ToString());
         }
         if(row["ProvinceId"]!=null)
         {
             model.ProvinceId=row["ProvinceId"].ToString();
         }
         if(row["CityId"]!=null)
         {
             model.CityId=row["CityId"].ToString();
         }
         if(row["DistrictId"]!=null)
         {
             model.DistrictId=row["DistrictId"].ToString();
         }
         if(row["Address"]!=null)
         {
             model.Address=row["Address"].ToString();
         }
         if(row["Phone"]!=null)
         {
             model.Phone=row["Phone"].ToString();
         }
         if(row["Addtime"]!=null && row["Addtime"].ToString()!="")
         {
             model.Addtime=Convert.ToDateTime(row["Addtime"].ToString());
         }
         if(row["Name"]!=null)
         {
             model.Name=row["Name"].ToString();
         }
     }
     return model;
 }
 /// <summary>
 /// 对象实体绑定数据
 /// </summary>
 public ECommerce.Admin.Model.RegisterUserInfo ReaderBind(IDataReader dataReader)
 {
     ECommerce.Admin.Model.RegisterUserInfo model=new ECommerce.Admin.Model.RegisterUserInfo();
     object ojb;
     ojb = dataReader["RUID"];
     if(ojb != null && ojb != DBNull.Value)
     {
         model.RUID=Convert.ToInt32(ojb);
     }
     model.ProvinceId=dataReader["ProvinceId"].ToString();
     model.CityId=dataReader["CityId"].ToString();
     model.DistrictId=dataReader["DistrictId"].ToString();
     model.Address=dataReader["Address"].ToString();
     model.Phone=dataReader["Phone"].ToString();
     ojb = dataReader["Addtime"];
     if(ojb != null && ojb != DBNull.Value)
     {
         model.Addtime=Convert.ToDateTime(ojb);
     }
     model.Name=dataReader["Name"].ToString();
     return model;
 }