Here, Create a simple RAI Service using web project for easy understanding.
Create a
New project with web, like below screen:
After clicking on
OK Button, you should be getting below screen:
In above screen, enable the RAI Service
Enable option then click on OK.The following screen appears.
And add the new item
ADO.NET Entity Data Model to the same project. For that, right-click on
Project and select
New item option then the below screen appears and select an "ADO.NET Entity Data Model" like below:
Create a model in the EF Designer based on an existing database. One can choose the database connection, settings for the model, and database objects to include in the model. The classes in application interacting are generated from the model like below.
After clicking on
Next button, the below screen appears. Here, select database and tables.
Expand the
Tables option and select the tables which are required as shown in below screen:
After clicking
Finish button, the following screen appears.
After adding tables from the database, build application because , it is all about auto-generated code.