예제 #1
0
        private static void ImportClubs(FileHelperEngine <ClubsHeader> engine, String csvPath)
        {
            var records = engine.ReadFile(csvPath);

            foreach (var record in records.Skip(1))
            {
                Club club = new Club();
                club.Name    = record.Nazov;
                club.Address = record.Adresa;
                club.Url     = record.Url;

                dbContext.InsertClub(club);
            }
        }