AJH.CMS.Core.Data.FeatureDataMapper.FillFromReaderForProductFeature C# (CSharp) Method

FillFromReaderForProductFeature() static private method

static private FillFromReaderForProductFeature ( Feature Feature, System.Data.SqlClient.SqlDataReader reader ) : void
Feature AJH.CMS.Core.Entities.Feature
reader System.Data.SqlClient.SqlDataReader
return void
        internal static void FillFromReaderForProductFeature(Feature Feature, SqlDataReader reader)
        {
            int colIndex = 0;
            colIndex = reader.GetOrdinal(CN_FEATURE_ID);
            if (!reader.IsDBNull(colIndex))
                Feature.ID = reader.GetInt32(colIndex);

            colIndex = reader.GetOrdinal(ECommerceDataMapperBase.CN_ECO_LAN_NAME);
            if (!reader.IsDBNull(colIndex))
                Feature.Name = reader.GetString(colIndex);

            colIndex = reader.GetOrdinal(CN_PRODUCT_FEATURE_VALUE);
            if (!reader.IsDBNull(colIndex))
                Feature.Value = reader.GetInt32(colIndex);

        }