private DBPicture GetPictureFromReader(IDataReader dataReader) { var item = new DBPicture(); item.PictureId = NopSqlDataHelper.GetInt(dataReader, "PictureID"); item.PictureBinary = NopSqlDataHelper.GetBytes(dataReader, "PictureBinary"); item.Extension = NopSqlDataHelper.GetString(dataReader, "Extension"); item.IsNew = NopSqlDataHelper.GetBoolean(dataReader, "IsNew"); return(item); }
private DBPicture GetPictureFromReader(IDataReader dataReader) { DBPicture picture = new DBPicture(); picture.PictureID = NopSqlDataHelper.GetInt(dataReader, "PictureID"); picture.PictureBinary = NopSqlDataHelper.GetBytes(dataReader, "PictureBinary"); picture.Extension = NopSqlDataHelper.GetString(dataReader, "Extension"); picture.IsNew = NopSqlDataHelper.GetBoolean(dataReader, "IsNew"); return(picture); }
private DBDownload GetDownloadFromReader(IDataReader dataReader) { DBDownload download = new DBDownload(); download.DownloadID = NopSqlDataHelper.GetInt(dataReader, "DownloadID"); download.UseDownloadURL = NopSqlDataHelper.GetBoolean(dataReader, "UseDownloadURL"); download.DownloadURL = NopSqlDataHelper.GetString(dataReader, "DownloadURL"); download.DownloadBinary = NopSqlDataHelper.GetBytes(dataReader, "DownloadBinary"); download.ContentType = NopSqlDataHelper.GetString(dataReader, "ContentType"); download.Extension = NopSqlDataHelper.GetString(dataReader, "Extension"); download.IsNew = NopSqlDataHelper.GetBoolean(dataReader, "IsNew"); return(download); }
private DBDownload GetDownloadFromReader(IDataReader dataReader) { var item = new DBDownload(); item.DownloadId = NopSqlDataHelper.GetInt(dataReader, "DownloadID"); item.UseDownloadUrl = NopSqlDataHelper.GetBoolean(dataReader, "UseDownloadURL"); item.DownloadUrl = NopSqlDataHelper.GetString(dataReader, "DownloadURL"); item.DownloadBinary = NopSqlDataHelper.GetBytes(dataReader, "DownloadBinary"); item.ContentType = NopSqlDataHelper.GetString(dataReader, "ContentType"); item.Filename = NopSqlDataHelper.GetString(dataReader, "Filename"); item.Extension = NopSqlDataHelper.GetString(dataReader, "Extension"); item.IsNew = NopSqlDataHelper.GetBoolean(dataReader, "IsNew"); return(item); }