
Delete record in bulk in .net core(API) using linq.

Delete records in bulk: If you want to delete records in bulk, user RemoveRange method. var userRoles = _contex…
Delete records in bulk: If you want to delete records in bulk, user RemoveRange method. var userRoles = _contex…
Delete one Record: If you want to remove only one record, use Remove method. var user = _context.Users.Where(u…
Here is function to check email is in proper format or not, email is valid or not. public bool CheckEmail( st…
Sometimes, we need to redirect to list page after saving data on other page. When you click on submit button, a success…
You can use following function to execute javascript code from code behind file in asp.net using c#. **when you a…
You can use following function to show alert message in asp.net using c#. Ex. Show data saved or updated successfully…
When you are using Ajax update panel, then normal alert function will not work. Here is the code to show alert messag…
Function to generate excel from dataset or datatable is given below: // Export to excel public void ExportToExc…
Transaction in SQL server: Transactions group a set of tasks into a single execution unit. Each transaction begins wi…