I am trying to achieve below application structure
App.Model - UserModel - OrderModel
App.Service - UserService - IUserService
App.Entity - DbContext
The site — WebAPI — invokes the service
Most ASP.NET 5 sample applications initialize the entity structure in the website launch file. e.g. .AddEntityFrameowrk () .. etc.
You need to know how we can split Entity into a separate project and how we initiate DBContext if we call the repository from the Service Project. (since the startup file is not available for the class library)
ASP.NET ( ). EF - - API, EF
"domain", -, API.
, :
: #, . ""
API: -API. EF . API , . , ASP.NET core 1.0 RC1, -api , "-" , , .. , API
-: -. "-", HttpClient , api . " api", , . , JSON .net
Source: https://habr.com/ru/post/1629681/More articles:Alpha transparency in Cairo - c ++Highcharts displays wrong month (next month) in datetime chart - timezoneПолучите сумму записей суммы, так как каждая строка - месяц, а столбец - неделя с использованием sql? - sql-serverAffect overlapping elements when div is frozen, animation is canceled - htmlSailsjs jwt token authentication example - node.jsJVM memory segment allocation - garbage-collectionUnable to select autocomplete results in google places - angularjsRequesting a specific line from a txt file in C # - c #How to export a function from tmux.conf - gitRetrofit 2 download image and save to folder - androidAll Articles