{"id":283504,"date":"2017-03-19T16:46:27","date_gmt":"2017-03-19T13:46:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283504"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283504","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Entity Framework Core code-first \u0441 \u0421\u0423\u0411\u0414 SQLite \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 WinForms-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 VisualStudio 2015"},"content":{"rendered":"<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0438\u0436\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0435\u0449\u0451 \u043e\u0434\u043d\u0438\u043c \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u00ab\u0445\u044d\u043b\u043b\u043e\u0443\u0443\u043e\u0440\u043b\u0434\u043e\u043c\u00bb, \u00ab\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430 \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c\u00bb, \u043a\u043e\u0438\u0445 \u0443\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438, \u043d\u043e \u044d\u0442\u043e \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043c\u0430\u043d\u0447\u0438\u0432\u043e. \u041d\u0430 \u0434\u0435\u043b\u0435 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441 \u043d\u0443\u043b\u044f \u0443 WinForms-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0440\u0430\u043d\u0435\u0435 \u0441 Entity Framework Core (\u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 Entity Framework) \u0438 \u0432\u043e\u043e\u0440\u0443\u0436\u0451\u043d\u043d\u043e\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0436\u0435 \u0432\u0430\u043b\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0432 \u0438\u0437\u043e\u0431\u0438\u043b\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u043c\u0438 \u043f\u043e EF Core \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0435\u043c \u043e\u043d \u043d\u0430\u0438\u0432\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u043b \u0434\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e. \u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u0441\u043e \u043c\u043d\u043e\u0439. \u041f\u043e\u0441\u0435\u043c\u0443 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e EF Core \u0432 \u043f\u043e\u0434\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043d\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Visual Studio (\u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u043e\u0433\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0443\u043b\u0438\u043d\u0433\u0430 .NET Core) \u0438 \u0443\u0436 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u0431\u0435\u0440\u0443\u0442 \u0432 \u0440\u0430\u0441\u0447\u0451\u0442, \u0447\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c EF Core \u0432 \u0434\u044d\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0440\u044d\u0439\u043c\u0432\u043e\u0440\u043a\u0430 Windows Forms (\u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ASP.NET core). \u041d\u043e \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e (\u0438\u043b\u0438 \u0438 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e) \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0434\u044d\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0451-\u0435\u0449\u0451 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f, \u0438 \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 (\u043a\u0430\u043a, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438) \u0443 Entity Framework Core \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 Entity Framework 6 \u0435\u0441\u0442\u044c. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432 \u0421\u0435\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0438\u043f\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0411\u0414, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u0430\u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0430 \u0432 \u043d\u0451\u043c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e EF Core \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0442\u0435\u0440\u044f\u044e\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u0442.\u0447. \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435.<\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0440\u0435\u0448\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u0443\u044e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0437\u0430\u0434\u0430\u0447\u0443, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f WinForms \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c EF Core \u0432 VisualStudo 2015 \u044f \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0446\u0435\u043b\u044b\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0442\u0438\u043f\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u043d\u0435\u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e, \u0447\u0442\u043e \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u0445 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u0438 \u0442.\u043f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0448\u0430\u0433\u0438 \u0438\u0437 \u0442\u0435\u0445, \u0447\u0442\u043e \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0449\u0443\u043f\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u0441\u043b\u0435\u043f\u0443\u044e, \u0433\u0443\u0433\u043b\u044f, \u0437\u0430\u0434\u0430\u0432\u0430\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044f.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u044f \u0432\u044b\u0431\u0440\u0430\u043b .NET Framework 4.6.1 (\u0432\u0435\u0440\u0441\u0438\u044f 4.6.2 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0443 \u043c\u0435\u043d\u044f \u0432 Visual Studio, \u043d\u043e \u0438 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 4.6.1 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438, \u043d\u043e \u044f \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b), \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u2014 Visual Studio Community Edition 2015 Update 3, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0421\u0423\u0411\u0414 \u2014 SQLite, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u041e\u0421 \u2014 Windows 7 64-bit.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u043f\u0438\u0441\u043e\u043a \u0448\u0430\u0433\u043e\u0432, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0430\u043b\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<p>  <b>0.<\/b> \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 .NET Framework 4.6.2 (<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=53345\">web installer<\/a>, <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=53344\">offline installer<\/a>) \u0438 Visual Studio 2015 Update 3 (<a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=691129\">update web installer<\/a>, <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=708984\">update offline installer ISO<\/a>, <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=626924\">web installer \u043f\u043e\u043b\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Visual Studio 2015 Update Community Edition 3<\/a>, <a href=\"http:\/\/download.microsoft.com\/download\/b\/e\/d\/bedddfc4-55f4-4748-90a8-ffe38a40e89f\/vs2015.3.com_enu.iso\">offline installer ISO \u043f\u043e\u043b\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Visual Studio 2015 Update Community Edition 3 \u0441 \u0438\u043d\u0442\u0435\u0440\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c<\/a>)<\/p>\n<p>  <b>1.<\/b> \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=50395\">Windows Management Framework 5.0<\/a> \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c PowerShell \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 5.0. \u0423 \u043c\u0435\u043d\u044f (\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Windows 7 \u0438 Visual Studio 2015 \u0438 \u0432\u0441\u0435\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043a \u043d\u0438\u043c) \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0431\u044b\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 2.0 \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/p>\n<p>  <b>2.<\/b> \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c .NET Core 1.0.1 tools Preview 2 (<a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=827546\">web installer<\/a>, \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f offline-\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt706497.aspx\">\u043a\u043b\u044e\u0447\u0430 \/layout<\/a>).<\/p>\n<p>  <b>3.<\/b> \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Visual Studio \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438 NuGet. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043b\u0438\u0431\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0435\u0440\u0441\u0438\u044e 3.5.0.1996 \u043f\u043e <a href=\"https:\/\/dotnet.myget.org\/F\/nuget-beta\/vsix\/NuGet.0d421874-a3b2-4f67-b53a-ecfce878063b-3.5.0.1996.vsix\">\u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435<\/a> \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Visual Studio <a href=\"https:\/\/dotnet.myget.org\/F\/nuget-beta\/vsix\/\">\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439<\/a> \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/5lisgHWl.png\" alt=\"Visual Studio 2015 &#39;Tools&#39; - &#39;Options&#39; - &#39;Extensions and Updates&#39; dialogue\"\/><\/p>\n<p>  <b>4.<\/b> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0438\u043f\u0430 Windows Forms Application. \u042f \u043d\u0430\u0437\u0432\u0430\u043b \u0435\u0433\u043e \u00abVs2015WinFormsEfcSqliteCodeFirst20170304Example\u00bb (\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430 04.03.2017 \u043f\u0440\u0438\u043c\u0435\u0440 WinForms-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Entity Framework Core, \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u00abcode-first\u00bb \u0438 \u0421\u0423\u0411\u0414 SQLite \u0432 Visual Studio 2015). \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 target framework \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c .NET Framework 4.6.1.<\/p>\n<p>  <b>5.<\/b> \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Solution Explorer, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Manage NuGet Packages&#8230;, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 Browse, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Microsoft.EntityFrameworkCore.Sqlite.Design \u0438 Microsoft.EntityFrameworkCore.Tools. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u00abInclude prerelease\u00bb, \u0432 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043c\u043e\u0436\u0435\u0442 \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u043d\u0430\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u0430\u0433\u0438. \u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 Microsoft.EntityFrameworkCore.Sqlite.Design 1.1.0 \u0438 Microsoft.EntityFrameworkCore.Tools 1.1.0-preview4-final. \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 Microsoft.EntityFrameworkCore.Tools \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 NuGet: \u0432 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u0440\u0430\u0442\u044c Tools \u2014 NuGet Package Manager \u2014 Package Manager Console, \u0432 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 (\u043a\u043e\u0442\u043e\u0440\u0430\u044f, \u043a\u0441\u0442\u0430\u0442\u0438, \u0435\u0449\u0451 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u0434\u0430\u043b\u0435\u0435) \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u00abPM&gt;\u00bb \u0432\u0432\u0435\u0441\u0442\u0438 \u00abInstall-Package Microsoft.EntityFrameworkCore.Tools -Pre\u00bb<\/p>\n<pre><code>PM&gt; Install-Package Microsoft.EntityFrameworkCore.Tools -Pre<\/code><\/pre>\n<p>  <b>6.<\/b> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043b\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u044f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u0438\u0445 \u0432 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0443 \u00abModel\u00bb (\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0435\u0451 \u00abEntities\u00bb, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0438\u0434\u0430\u044e\u0442 \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0432\u043e\u0432\u0441\u0435 \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b). \u041c\u043e\u0434\u0435\u043b\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0433\u043e\u0440\u043e\u0434\u043e\u0432 \u0438 \u043b\u044e\u0434\u0435\u0439 \u0432\/\u0438\u0437 \u043d\u0438\u0445. \u041a\u0430\u0436\u0434\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u0438\u043c \u0433\u043e\u0440\u043e\u0434\u043e\u043c, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e \u043e\u043d \u0433\u043e\u0440\u043e\u0434\u0430 \u0432\u043e\u043e\u0431\u0449\u0435.<\/p>\n<p>  <i>Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext.cs<\/i><\/p>\n<pre><code class=\"cs\">using Microsoft.EntityFrameworkCore;  namespace Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model {     public class Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext : DbContext     {         public DbSet&lt;City&gt; Cities { get; set; }          public DbSet&lt;Person&gt; People { get; set; }          protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)         {             optionsBuilder.UseSqlite(&quot;Filename=Vs2015WinFormsEfcSqliteCodeFirst20170304Example.sqlite&quot;);         }     } } <\/code><\/pre>\n<p>  <i>City.cs<\/i><\/p>\n<pre><code class=\"cs\">using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema;  namespace Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model {     public class City     {         public int Id { get; set; }          public string Name { get; set; }          [InverseProperty(&quot;City&quot;)]         public virtual ICollection&lt;Person&gt; People { get; set; }     } } <\/code><\/pre>\n<p>  <i>Person.cs<\/i><\/p>\n<pre><code class=\"cs\">using System.ComponentModel.DataAnnotations.Schema;  namespace Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model {     public class Person     {         public int Id { get; set; }          public string Name { get; set; }          public string Surname { get; set; }          public int? CityId { get; set; }          [InverseProperty(&quot;People&quot;)]         public virtual City City { get; set; }     } } <\/code><\/pre>\n<p>  <b>7.<\/b> \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b PowerShell, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430 &quot;&#8230;\\packages\\Microsoft.EntityFrameworkCore.Tools.1.1.0-preview4-final\\tools\\init.ps1 cannot be loaded because running scripts is disabled on this system.&quot; \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 NuGet (\u0432\u044b\u0431\u0440\u0430\u0442\u044c Tools \u2014 NuGet Package Manager \u2014 Package Manager Console \u0432 \u043c\u0435\u043d\u044e) \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>PM&gt; Set-ExecutionPolicy RemoteSigned<\/code><\/pre>\n<p>  <b>8.<\/b> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u00ab\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438\u00bb. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0432 \u0438 \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0432 \u043d\u0430\u0448 \u043a\u043e\u0434 (\u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u044f\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0447\u0430\u0442\u043e\u043a) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 NuGet \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443.<\/p>\n<pre><code>PM&gt; Add-Migration -Name &quot;Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleMigration&quot; -Context &quot;Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext&quot;<\/code><\/pre>\n<p>  \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0430\u043f\u043a\u0430 \u00abMigrations\u00bb \u0438 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0432 \u043d\u0435\u0439: \u00abVs2015WinFormsEfcSqliteCodeFirst20170304ExampleContextModelSnapshot.cs\u00bb \u0438 \u00ab20170304204355_Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleMigration.cs\u00bb (\u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0435 \u2014 \u044d\u0442\u043e \u043d\u0438 \u0447\u0442\u043e \u0438\u043d\u043e\u0435, \u043a\u0430\u043a \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u044f \u0435\u0451 \u043f\u043e\u0442\u043e\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0434\u0430\u043b\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u00abVs2015WinFormsEfcSqliteCodeFirst20170304ExampleMigration.cs\u00bb).<\/p>\n<p>  <b>9.<\/b> \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (unique constraint, \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u043a\u0430\u043a \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447) \u043d\u0430 \u0438\u043c\u044f \u0433\u043e\u0440\u043e\u0434\u0430 (\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u0432\u0430\u044e\u0442 \u0433\u043e\u0440\u043e\u0434\u0430 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438, \u043d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043b\u0438\u0448\u043d\u0438\u043c)<\/p>\n<p>  <i>Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleMigration.cs<\/i><\/p>\n<pre><code class=\"cs\">using Microsoft.EntityFrameworkCore.Migrations;  namespace Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Migrations {     public partial class Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleMigration : Migration     {         protected override void Up(MigrationBuilder migrationBuilder)         {             migrationBuilder.CreateTable(                 name: &quot;Cities&quot;,                 columns: table =&gt; new                 {                     Id = table.Column&lt;int&gt;(nullable: false)                         .Annotation(&quot;Sqlite:Autoincrement&quot;, true),                     Name = table.Column&lt;string&gt;(nullable: true)                 },                 constraints: table =&gt;                 {                     table.PrimaryKey(&quot;PK_Cities&quot;, x =&gt; x.Id);                      \/\/ \u042d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e                     table.UniqueConstraint(&quot;UQ_Cities_Name&quot;, x =&gt; x.Name);                 });              migrationBuilder.CreateTable(                 name: &quot;People&quot;,                 columns: table =&gt; new                 {                     Id = table.Column&lt;int&gt;(nullable: false)                         .Annotation(&quot;Sqlite:Autoincrement&quot;, true),                     CityId = table.Column&lt;int&gt;(nullable: true),                     Name = table.Column&lt;string&gt;(nullable: true),                     Surname = table.Column&lt;string&gt;(nullable: true)                 },                 constraints: table =&gt;                 {                     table.PrimaryKey(&quot;PK_People&quot;, x =&gt; x.Id);                     table.ForeignKey(                         name: &quot;FK_People_Cities_CityId&quot;,                         column: x =&gt; x.CityId,                         principalTable: &quot;Cities&quot;,                         principalColumn: &quot;Id&quot;,                         onDelete: ReferentialAction.Restrict);                 });              migrationBuilder.CreateIndex(                 name: &quot;IX_People_CityId&quot;,                 table: &quot;People&quot;,                 column: &quot;CityId&quot;);         }          protected override void Down(MigrationBuilder migrationBuilder)         {             migrationBuilder.DropTable(                 name: &quot;People&quot;);              migrationBuilder.DropTable(                 name: &quot;Cities&quot;);         }     } } <\/code><\/pre>\n<p>  <i>Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContextModelSnapshot.cs<\/i><\/p>\n<pre><code class=\"cs\">using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model;  namespace Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Migrations {     [DbContext(typeof(Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext))]     partial class Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContextModelSnapshot : ModelSnapshot     {         protected override void BuildModel(ModelBuilder modelBuilder)         {             modelBuilder                 .HasAnnotation(&quot;ProductVersion&quot;, &quot;1.1.0-rtm-22752&quot;);              modelBuilder.Entity(&quot;Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model.City&quot;, b =&gt;                 {                     b.Property&lt;int&gt;(&quot;Id&quot;)                         .ValueGeneratedOnAdd();                      b.Property&lt;string&gt;(&quot;Name&quot;);                      b.HasKey(&quot;Id&quot;);                      \/\/ \u042d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e                     b.HasIndex(&quot;Name&quot;).IsUnique();                      b.ToTable(&quot;Cities&quot;);                 });              modelBuilder.Entity(&quot;Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model.Person&quot;, b =&gt;                 {                     b.Property&lt;int&gt;(&quot;Id&quot;)                         .ValueGeneratedOnAdd();                      b.Property&lt;int?&gt;(&quot;CityId&quot;);                      b.Property&lt;string&gt;(&quot;Name&quot;);                      b.Property&lt;string&gt;(&quot;Surname&quot;);                      b.HasKey(&quot;Id&quot;);                      b.HasIndex(&quot;CityId&quot;);                      b.ToTable(&quot;People&quot;);                 });              modelBuilder.Entity(&quot;Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model.Person&quot;, b =&gt;                 {                     b.HasOne(&quot;Vs2015WinFormsEfcSqliteCodeFirst20170304Example.Model.City&quot;, &quot;City&quot;)                         .WithMany(&quot;People&quot;)                         .HasForeignKey(&quot;CityId&quot;);                 });         }     } } <\/code><\/pre>\n<p>  <b>10.<\/b> \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0411\u0414. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 NuGet \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>PM&gt; Update-Database -Context &quot;Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext&quot;<\/code><\/pre>\n<p>  \u0424\u0430\u0439\u043b \u0411\u0414 \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 exe-\u0448\u043d\u0438\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e &quot;&#8230;\\Vs2015WinFormsEfcSqliteCodeFirst20170304Example\\bin\\Debug\\Vs2015WinFormsEfcSqliteCodeFirst20170304Example.sqlite&quot;.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u044b \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 <a href=\"https:\/\/sqlite.org\/download.html\">sqlite3<\/a> \u0438\u043b\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 GUI \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 <a href=\"http:\/\/sqlitebrowser.org\/\">DB Browser for SQLite<\/a>, \u0438 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e. \u041f\u043e\u043c\u0438\u043c\u043e \u043d\u0430\u0448\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u00abCities\u00bb \u0438 \u00abPeople\u00bb \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0439\u0434\u0451\u043c \u0442\u0430\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u00ab__EFMigrationsHistory\u00bb \u0441\u043e \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 EF Core \u0438 \u00absqlite_sequence\u00bb \u0441\u043e \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 SQLite.<\/p>\n<p>  <b>11.<\/b> \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0443 \u043d\u0430\u0448\u0435\u0439 \u0444\u043e\u0440\u043c\u044b, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u043d\u0430 \u043d\u0435\u0439 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0443, \u0449\u0451\u043b\u043a\u043d\u0435\u043c \u0438 \u043d\u0430 \u043d\u0435\u0439 \u0434\u0432\u0430\u0436\u0434\u044b \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0435\u0433\u043e \u043a\u043e\u0434\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0411\u0414. \u042f \u0435\u0449\u0451 \u0438\u043c\u0435\u044e \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c Form1 \u0432 MainForm \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b button1 \u0432 mainButton), \u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432\u043a\u0443\u0441\u0430 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0432 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  <i>MainForm.cs<\/i><\/p>\n<pre><code class=\"cs\">private void mainButton_Click(object sender, EventArgs e) {     \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446     using (var context = new Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext())     {         foreach (var person in context.People)             context.Remove(person);          foreach (var city in context.Cities)             context.Remove(city);          context.SaveChanges();     }      \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0433\u043e\u0440\u043e\u0434\u0432 \u0438 \u0437\u0430\u0442\u0435\u043c     \/\/ \u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043b\u044e\u0434\u0435\u0439, \u0441\u0441\u044b\u043b\u0430\u044f\u0441\u044c \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0433\u043e\u0440\u043e\u0434\u0430     using (var context = new Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext())     {         var praha = new City { Name = &quot;Praha&quot; };          var london = new City { Name = &quot;London&quot; };          var madrid = new City { Name = &quot;Madrid&quot; };          var jan = new Person { Name = &quot;Jan&quot;, City = praha };          var john = new Person { Name = &quot;John&quot;, City = london };          var juan = new Person { Name = &quot;Juan&quot;, City = madrid };          context.Cities.AddRange(praha, london, madrid);          context.People.AddRange(jan, john, juan);                  context.SaveChanges();     }      \/\/ \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0440\u0430\u043d\u0435\u0435 \u0433\u043e\u0440\u043e\u0434\u0435 \u0438\u0437 \u0411\u0414,     \/\/ \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0432 \u044d\u0442\u043e\u0442 \u0433\u043e\u0440\u043e\u0434,     \/\/ \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0435 (\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u043c\u0438\u043b\u0438\u044e)     using (var context = new Vs2015WinFormsEfcSqliteCodeFirst20170304ExampleContext())     {         \/\/ \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e Include(city =&gt; city.People)         \/\/ \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e context.Cities.Single(city =&gt; city.Name == &quot;London&quot;);         \/\/ \u0442\u043e \u0433\u043e\u0440\u043e\u0434 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f, \u043d\u043e \u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043e\u043a .People \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d null.         \/\/ \u0412 production \u043a\u043e\u0434\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 .Single \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043b\u0443\u0447\u0430\u0435\u0432,         \/\/ \u043a\u043e\u0433\u0434\u0430 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0435\u0442 \u0438\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u0431\u043e\u043b\u0448\u0435 \u043e\u0434\u043d\u043e\u0439         var london = context.Cities.Include(city =&gt; city.People)(city =&gt; city.Name == &quot;London&quot;);          var peter = new Person { Name = &quot;Peter&quot;, City = london };          var john = london.People.Single(person =&gt; person.Name == &quot;John&quot;);          john.Surname = &quot;Smith&quot;;          context.Add(peter);          context.Update(john);          context.SaveChanges();     } } <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438 \u0432\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0431\u043e\u043b\u0435\u0435 \u0431\u043e\u0433\u0430\u0442\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u0445 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/strangeattr\/Vs2015WinFormsEfcSqliteCodeFirst20170304Example\">\u0442\u0443\u0442<\/a>.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/324272\/\"> https:\/\/habrahabr.ru\/post\/324272\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0438\u0436\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0435\u0449\u0451 \u043e\u0434\u043d\u0438\u043c \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u00ab\u0445\u044d\u043b\u043b\u043e\u0443\u0443\u043e\u0440\u043b\u0434\u043e\u043c\u00bb, \u00ab\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430 \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c\u00bb, \u043a\u043e\u0438\u0445 \u0443\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438, \u043d\u043e \u044d\u0442\u043e \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043c\u0430\u043d\u0447\u0438\u0432\u043e. \u041d\u0430 \u0434\u0435\u043b\u0435 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441 \u043d\u0443\u043b\u044f \u0443 WinForms-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0440\u0430\u043d\u0435\u0435 \u0441 Entity Framework Core (\u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 Entity Framework) \u0438 \u0432\u043e\u043e\u0440\u0443\u0436\u0451\u043d\u043d\u043e\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0436\u0435 \u0432\u0430\u043b\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0432 \u0438\u0437\u043e\u0431\u0438\u043b\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0421\u0435\u0442\u0438 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u043c\u0438 \u043f\u043e EF Core \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0435\u043c \u043e\u043d \u043d\u0430\u0438\u0432\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u043b \u0434\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e. \u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u0441\u043e \u043c\u043d\u043e\u0439. \u041f\u043e\u0441\u0435\u043c\u0443 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-283504","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283504"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283504\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}