feat: implement building address table from csv

This commit is contained in:
Stevan Freeborn
2024-08-24 16:06:44 -05:00
parent 86527efad9
commit 0b9a83619d
4 changed files with 154 additions and 12 deletions
@@ -0,0 +1,14 @@
namespace SanctionsSearch.Worker.Models;
class AddressMap : ClassMap<Address>
{
public AddressMap()
{
Map(m => m.SdnId).Index(0);
Map(m => m.Id).Index(1);
Map(m => m.StreetAddress).Index(2).TypeConverter<NullCharacterConverter>();
Map(m => m.CityProvincePostal).Index(3).TypeConverter<NullCharacterConverter>();
Map(m => m.Country).Index(4).TypeConverter<NullCharacterConverter>();
Map(m => m.Remarks).Index(5).TypeConverter<NullCharacterConverter>();
}
}