internal static void FillFromReader(CombinationProduct combinationProduct, SqlDataReader reader)
{
int colIndex = 0;
colIndex = reader.GetOrdinal(CN_COMBINATION_ID);
if (!reader.IsDBNull(colIndex))
combinationProduct.ID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_ID);
if (!reader.IsDBNull(colIndex))
combinationProduct.ProductID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_REFERENCE);
if (!reader.IsDBNull(colIndex))
combinationProduct.ProductReference = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_EAN13_ID);
if (!reader.IsDBNull(colIndex))
combinationProduct.ProductEAN13 = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_UPC);
if (!reader.IsDBNull(colIndex))
combinationProduct.ProductUPC = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_SUPPLIER);
if (!reader.IsDBNull(colIndex))
combinationProduct.SupplierRefernce = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_WHOLESALE_PRICE);
if (!reader.IsDBNull(colIndex))
combinationProduct.WholesalePrice = reader.GetDecimal(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_IMPACT_ON_PRICE);
if (!reader.IsDBNull(colIndex))
combinationProduct.ImpactOnPrice = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_IMPACT_ON_WEIGHT);
if (!reader.IsDBNull(colIndex))
combinationProduct.ImpactOnWeight = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_INITIAL_STOCK);
if (!reader.IsDBNull(colIndex))
combinationProduct.InitialStock = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_MINIMUM_QUANTITY);
if (!reader.IsDBNull(colIndex))
combinationProduct.MinimumQuantity = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_IS_DEFAULT);
if (!reader.IsDBNull(colIndex))
combinationProduct.IsDefault = reader.GetBoolean(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_COLOR);
if (!reader.IsDBNull(colIndex))
combinationProduct.Color = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(CN_COMBINATION_PRODUCT_IS_DELETED);
if (!reader.IsDBNull(colIndex))
combinationProduct.IsDefault = reader.GetBoolean(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_NAME);
if (!reader.IsDBNull(colIndex))
combinationProduct.Location = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_LAN_ID);
if (!reader.IsDBNull(colIndex))
combinationProduct.LanguageID = reader.GetInt32(colIndex);
}