private static ImageSourceInfo CreateImageSourceInfo(IDataReader rdr) { ImageSourceInfo info = new ImageSourceInfo(); info.ImageName = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_NAME")); info.ImageNameCn = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_NAME_CN")); info.ImageUrl = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_URL")); info.Resource = DBConvert.GetBytes(rdr, rdr.GetOrdinal("RESOURCE")); info.ImageType = DBConvert.GetInt32Nullable(rdr, rdr.GetOrdinal("IMAGE_TYPE")); info.CreateUser = DBConvert.GetString(rdr, rdr.GetOrdinal("CREATE_USER")); info.ModifyDate = DBConvert.GetDateTimeNullable(rdr, rdr.GetOrdinal("MODIFY_DATE")); info.Id = DBConvert.GetInt64(rdr, rdr.GetOrdinal("ID")); info.CreateDate = DBConvert.GetDateTimeNullable(rdr, rdr.GetOrdinal("CREATE_DATE")); info.Fid = DBConvert.GetGuidNullable(rdr, rdr.GetOrdinal("FID")); info.ModifyUser = DBConvert.GetString(rdr, rdr.GetOrdinal("MODIFY_USER")); info.ValidFlag = DBConvert.GetBoolNullable(rdr, rdr.GetOrdinal("VALID_FLAG")); return(info); }
private static ImageResourceInfo CreateImageResourceInfo(IDataReader rdr) { ImageResourceInfo info = new ImageResourceInfo(); info.Id = DBConvert.GetInt64(rdr, rdr.GetOrdinal("ID")); info.Fid = DBConvert.GetGuidNullable(rdr, rdr.GetOrdinal("FID")); info.ImageName = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_NAME")); info.ImageNameCn = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_NAME_CN")); info.ImageNameEn = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_NAME_EN")); info.CssTagName = DBConvert.GetString(rdr, rdr.GetOrdinal("CSS_TAG_NAME")); info.ImageType = DBConvert.GetInt32Nullable(rdr, rdr.GetOrdinal("IMAGE_TYPE")); info.ImageFileType = DBConvert.GetInt32Nullable(rdr, rdr.GetOrdinal("IMAGE_FILE_TYPE")); info.ImageUrl = DBConvert.GetString(rdr, rdr.GetOrdinal("IMAGE_URL")); info.ImageResource = DBConvert.GetBytes(rdr, rdr.GetOrdinal("IMAGE_RESOURCE")); info.ProgramTag = DBConvert.GetString(rdr, rdr.GetOrdinal("PROGRAM_TAG")); info.Comments = DBConvert.GetString(rdr, rdr.GetOrdinal("COMMENTS")); info.ValidFlag = DBConvert.GetBoolNullable(rdr, rdr.GetOrdinal("VALID_FLAG")); info.CreateUser = DBConvert.GetString(rdr, rdr.GetOrdinal("CREATE_USER")); info.CreateDate = DBConvert.GetDateTimeNullable(rdr, rdr.GetOrdinal("CREATE_DATE")); info.ModifyUser = DBConvert.GetString(rdr, rdr.GetOrdinal("MODIFY_USER")); info.ModifyDate = DBConvert.GetDateTimeNullable(rdr, rdr.GetOrdinal("MODIFY_DATE")); return(info); }