Once the template has been created we need to export each of the projects. We do this by selecting the EXPORT TEMPLATE option. Export Template is under the FILE menu in Visual Studio 2015. In Visual Studio 2017 they moved it under the PROJECT menu. It will export the project as a zip file. This needs to be done once for each project.
Scaffolding is a great time saver. However, as developers progress they find different patterns and techniques that they consistently use in their projects and will find themselves continually changing scaffolding the same way over and over. Microsoft has allowed for developers to customize scaffolding for each project. To take advantage of this all you have to do is make a copy of the templates you want, modify them and include them in your project.
There are many times that you may want to count the number of characters in a text area and display that number to the users especially to show limits on text fields. This is very easily done with a little jQuery.
Editing records using EF is very simple. Visual Studio even scaffolds out all of the code for you if you are simply updating a textual record. However, if you are also trying to update an image or file things get a little tricky.
I have talked about Identity and how useful it is. There are somethings that I wish were included that are not however. This is when the ability to extend or modify Identity comes in useful. Storing a user’s name or other personal information in the AspNetUsers table is one of those things. In this post I am going to show how to add a FirstName and LastName column to the AspNetUsers table and then pull that information out when a user signs in.