internal static void FillFromReader(Supplier Supplier, SqlDataReader reader)
{
int colIndex = 0;
colIndex = reader.GetOrdinal(CN_SUPPLIER_ID);
if (!reader.IsDBNull(colIndex))
Supplier.ID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_SUPPLIER_LOGO_IMAGE);
if (!reader.IsDBNull(colIndex))
Supplier.LogoImage = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(CN_SUPPLIER_IS_ENABLED);
if (!reader.IsDBNull(colIndex))
Supplier.IsEnabled = reader.GetBoolean(colIndex);
colIndex = reader.GetOrdinal(CN_SUPPLIER_PARENT_OBJ_ID);
if (!reader.IsDBNull(colIndex))
Supplier.ParentSupplierID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_SUPPLIER_IS_DELETED);
if (!reader.IsDBNull(colIndex))
Supplier.IsDeleted = reader.GetBoolean(colIndex);
colIndex = reader.GetOrdinal(CN_SUPPLIER_PORTAL_ID);
if (!reader.IsDBNull(colIndex))
Supplier.PortalID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_NAME);
if (!reader.IsDBNull(colIndex))
Supplier.Name = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_LAN_ID);
if (!reader.IsDBNull(colIndex))
Supplier.LanguageID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_DESC);
if (!reader.IsDBNull(colIndex))
Supplier.Description = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_NAME2);
if (!reader.IsDBNull(colIndex))
Supplier.MetaTitle = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_DESC2);
if (!reader.IsDBNull(colIndex))
Supplier.MetaDescription = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_KEYWORD);
if (!reader.IsDBNull(colIndex))
Supplier.MetaKeywords = reader.GetString(colIndex);
}