Jason Presley Development Blog

0

Drop All SQL Tables

I wanted to reload a database out on my hosting server but wanted an easy way to drop all of my DB tables. I found this little script and it works wonderfully! Simply run...

0

Adding Password Minimum Requirements for Identity

It is very simple to add validation to check for minimum password requirements when creating an Identity user. Simply add the following data attributes to the model or metadata file. The regular expression attribute...

0

Creating a Null Option in a DropDownList

When scaffolding out views for an entity that is linked to another object Visual Studio will create a drop down list of the values in the linked table so that users can select an...

0

Setting up Cascading Deletes in SQL Server

When setting up CRUD functionality with linked tables in a DB by default SQL Server will not let you delete a parent record if there are child records that refer to it. This would...

0

Metadata and Linked Tables

When working with scaffolded forms and metadata in MVC there is one small hiccup that will typically catch most beginning programmers. When using metadata to change the displayed label for a data column from...

0

Creating a Dynamic Shared Dropdown Menu

To provide easy access to content directly from the menu can seem challenging especially when that content needs to be pulled from the database. Placing a dynamic menu on the shared layout however is...

0

Visual Studio Custom Project Templates

After developing a number of web sites we tend to find a design and structure that we default to. We build out the same architecture, use the same design patterns and include many of...

0

Custom Scaffolding

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...