Samkelo Siyabonga Ngubo Ответов: 1

Как я могу читать из текстового файла и записывать в базу данных SQL с помощью MVC я начинаю в azure


mvc application that is used to determine the frequency of each word appear in the book moby  Dick; or the whale by Herman Melville.you application must be written in C#
make use of sql dtabase to store the tuple of <Word : Frequency>,employs the entity Framework and Linq expression where appropiate
output :

Most frequent word:{word} occured {x} times
Most frequent 7 character  word:{word} occured {x} times
Highest scoring words(according to scrabble):{word} with a score of {x}


Что я уже пробовал:

Я новичок и не знаю с чего начать

1 Ответов

Рейтинг:
2

RickZeeland

Вот пример, который подсчитывает слова в строке: [Подсчет слов]
Вы можете загрузить текстовый файл в строку с помощью File.ReadAllText, см. пример здесь: [^]
Здесь вы можете ознакомиться с основами работы с SQL Server: [Поставщики sqlclient]

Если вы понимаете эти основные вещи, вы можете перейти к LINQ, Entity Framework и MVC- удачи вам !