Category - Entity Framework
Results 21 - 25 of 285
19 May 2021 19 May 2021 0 Comments  1002 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the FromSql function of Entity Framework in ASP.Net Core.

The FromSql function is used to execute SQL Queries and Stored Procedures when using Entity Framework in .Net Core.
19 May 2021 19 May 2021 0 Comments  1141 Views
Here Mudassar Ahmed Khan has explained with an example, how to call Stored Procedure with parameters using Entity Framework in .Net Core 2.1.

The Stored Procedures are called with parameters using the FromSql function of Entity Framework in .Net Core 2.1.
19 May 2021 19 May 2021 0 Comments  714 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error related to FromSql function of Entity Framework in .Net Core 2.1.

Error: DBSet<Entity> does not contain a definition for FromSql

The above error occurs because the namespace required to use the FromSql function has not been inherited.

The FromSql function belongs to the Microsoft.EntityFrameworkCore namespace.
18 May 2021 18 May 2021 0 Comments  978 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Search functionality using Entity Framework in ASP.Net Core MVC.

The Search functionality will be implemented using a Stored Procedure which will be called by passing the parameter value using Entity Framework in ASP.Net Core MVC.
30 Apr 2021 30 Apr 2021 0 Comments  999 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete data from Database using jQuery AJAX and Entity Framework in ASP.Net MVC Razor.

When the Delete Button is clicked, the DeleteCustomer Action method of the Controller is called using jQuery AJAX and the details of Customer are sent as JSON object.

Finally, a Customer object is sent to the View which indicates that the record was successfully deleted or not.
Results 21 - 25 of 285