Last post Mar 31, 2017 02:54 AM by Cathy Zou
Mar 30, 2017 01:52 PM|slimbunny|LINK
How do I create a modelBuilder.Entity with SQL StoredProcedure for my AspNetUser Table.
I want to update one or two field values in a record, and I do not know how to create a modelBuilder.Entity with StoredProcedure that is specific the the one stored procedure. This applies to one table only. I don't know how use MapToStoredProcedures...
my storedProcedure Name is : AspNetUsers_Update_PhoneNumber
Please help with this issue, as I am new to MVC Entity.... Kindly thank you very much.
Mar 31, 2017 02:54 AM|Cathy Zou|LINK
By default. Code first will configure all enetities to perform insert, update and delete commands using direct table access.
However, In EF6, we could configure your code first model to use store produce for some or all entities in your model.
Something as below:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
For more information, please refer to the following links: