Recent Post

6/recent/ticker-posts

Dot Net Core (.net Core) Crud Operation Through WebAPI Using EntityFramework Core

Hey techy,

 In this Article  I Will explaining you How to Implement CRUD (Create  ,Retrieve, Update ,Delete) operation in ASP.NET Core WebAPI using EntityFrameworkCore and also explaining the Which Package is necessary for this type of application.

So as you know any kind of application build with new generation(This time) From API. API is stand for Application Programming Interface. API is nothing but its only a application that acquire the proper information behalf of operation in database and all other types functionality. So How to know about the API is working properly or not.

API is produce the result or Response set  with status code. this code is provide properly manner API execution. API always return the response is JSON ,XML etc. 

JSON:- its Stand for for Java Script  object Notation. It is key value pair and separate by (:) Colon.

Example :-  

  {
    "id": 2,
    "courseName": "Btech",
    "descriptions": "4 Years Program"
  }

in this Example you can see id separate with Colon(:)   and as you seen Id is key and value is 2 and same it's format courseName and as well as description.

XML:- XML stands for extensible markup language. A markup language is a set of codes, or tags, that describes the text in a digital document.  

Example :-

<?xml version="1.0" encoding="UTF-8"?>
<Course>
    <id>2</id>
    <courseName>Btech</courseName>
    <descriptions>4 Years Programs</descriptions>
</Course>

API Response or Result set Return :- 

  • Response Message
  • Response Status Code
  • Response data
Example like that:-

{
  "statusCode": 200,
  "message": "Student inserted successfully",
  "data": null
}

When we want to work with entityframeworkcore so we need to install some package from NuGet Package Manager .

So Firstly described What is Entity Framework Core?  Entity framework core is nothing but it's a mechanism for Providing the access of database and perform the operation in database. EntityFrameworkcore is new version of Entity Framework  after EF 6.x. It's light weighted, open source and extensible. It's support the Cross Platform Application access the database techniques.
 
Now looking for Entity Framework Core for CRUD operation purpose package-
  •  EntityFrameworkCore
  •  EntityFrameworkCore.SqlServer
  •  EntityFrameworkCore.Design
  •  EntityFrameworkCore.Tool

---------------------------------As Soon As Content Publish ------------------------------------------------------



Post a Comment

1 Comments

thanks for your suggestion and improving quality of the content