Page 315 talks about performing updates using stored procedures.
Starting in EF6 you can configure your Code First model to use stored procedures for some or all entities in your model.
However, I want to update all other fields using one or multiple attributes.
When you add your document type to e Connect, you need to create a SQL stored procedure that performs each of these steps.
Here you can select our created stored procedure "sp_Insert Student Info" as an insert function.
The same way you can select other stored procedures for the update and delete function as well: So from now on the context will use mapped stored procedure for adding, updating and deleting the student entity.
You are currently viewing the BOOK: Beginning T-SQL with Microsoft SQL Server 20 ISBN: 978-0-470-25703-6 section of the Wrox Programmer to Programmer discussions.