protected override void ConfigureClassMap(PackageMetadataClassMap map)
 {
     map.Map(x => x.Metadata.Type).Index(3);
     map.Map(x => x.Metadata.Url).Index(4);
     map.Map(x => x.Metadata.Branch).Index(5);
     map.Map(x => x.Metadata.Commit).Index(6);
 }
Exemple #2
0
        private Configuration CreateCsvConfiguration()
        {
            var configuration = new Configuration
            {
                HasHeaderRecord = false,
            };

            var map = new PackageMetadataClassMap();

            ConfigureClassMap(map);

            configuration.RegisterClassMap(map);

            return(configuration);
        }
 protected override void ConfigureClassMap(PackageMetadataClassMap map)
 {
     map.Map(x => x.Metadata).Index(3);
 }
Exemple #4
0
 protected abstract void ConfigureClassMap(PackageMetadataClassMap map);