Time for action – Using property validation
In this example, we want to implement a simple domain that is validated using attributes to decorate the properties of our entities. We will use NuGet to set up our project and have a quick start.
- Open Microsoft SQL Server Management Studio (SSMS) and log in to your local SQL Server Express. Create a new empty database called
- Open Visual Studio and add a new Console Application type project. Call the project
- Set Target framework of the project as .NET Framework 4.0.
- Make sure you have the latest NuGet Package Manager extension installed. At the time of writing, this is version 1.2.x.
Installing NuGet Package Manager Extension
To be able to use NuGet from within ...