internal static void FillFromReader(AJH.CMS.Core.Entities.Attribute attribute, SqlDataReader reader)
{
int colIndex = 0;
colIndex = reader.GetOrdinal(CN_ATTRIBUTE_ID);
if (!reader.IsDBNull(colIndex))
attribute.ID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_ATTRIBUTE_GROUP_ID);
if (!reader.IsDBNull(colIndex))
attribute.GroupID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_ATTRIBUTE_PORTAL_ID);
if (!reader.IsDBNull(colIndex))
attribute.PortalID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_NAME);
if (!reader.IsDBNull(colIndex))
attribute.Name = reader.GetString(colIndex);
colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_LAN_ID);
if (!reader.IsDBNull(colIndex))
attribute.LanguageID = reader.GetInt32(colIndex);
colIndex = reader.GetOrdinal(CN_ATTRIBUTE_IS_DELETED);
if (!reader.IsDBNull(colIndex))
attribute.IsDeleted = reader.GetBoolean(colIndex);
}