Search Results
Results 1 - 5 of 7
Your query returned 7 results in 0.484 seconds.
21 Nov 2020 21 Nov 2020 0 Comments  190 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Auto Increment Primary Key with Entity Framework Database First using C# in ASP.Net MVC Razor.

When the Form is submitted, the value of the submitted Form fields will be fetched using Entity Framework Model class object and will be inserted into database using Entity Framework. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.
23 Mar 2017 23 Mar 2017 0 Comments  44838 Views
Here Mudassar Ahmed Khan has explained with an example, how to get ID of last inserted record using Entity Framework in ASP.Net MVC Razor.

When the Form is submitted, the value of the submitted Form fields will be fetched using Entity Framework Model class object and will be inserted into database using Entity Framework. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.

Entity Framework by default internally uses SCOPE_IDENTITY for fetching ID of the last inserted record.
23 Feb 2017 23 Feb 2017 3 Comments  51047 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert data (record) in database using Entity Framework in ASP.Net MVC Razor.

When the Form is submitted, the value of the submitted Form fields will be fetched using Entity Framework Model class object and will be inserted into database using Entity Framework. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.

Entity Framework by default internally uses SCOPE_IDENTITY for fetching ID of the last inserted record.
23 Feb 2017 23 Feb 2017 0 Comments  11833 Views
Here Mudassar Ahmed Khan has explained with an example, how to get ID of last inserted record using SCOPE_IDENTITY when using Entity Framework in ASP.Net MVC Razor.

When the Form is submitted, the value of the submitted Form fields will be fetched using Entity Framework Model class object and will be inserted into database using Entity Framework. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.

Entity Framework by default internally uses SCOPE_IDENTITY for fetching ID of the last inserted record.
04 Nov 2016 04 Nov 2016 0 Comments  15242 Views
Here Mudassar Ahmed Khan has explained with an example, how to get ID of last inserted record using ADO.Net and SCOPE_IDENTITY in ASP.Net MVC Razor.
When the Form is submitted, the value of the submitted Form fields will be fetched using Model class object and will be inserted into database. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.
Results 1 - 5 of 7