Ensure Uniqueness of Nullable Columns
How do you ensure that duplicate keys are prevented on a column that allows NULL values?
How do you ensure that duplicate keys are prevented on a column that allows NULL values?
We will take a look at another popular feature, Shadow Properties. When designing applications we tend to keep our code clean and simple, however there are times that you need to add properties other than what is required in your main business use cases, CreatedOn
and LastUpdatedOn
are such well-known properties.
In this article we are going to check one of the features of Entity Framework Core, Global Query Filters; this was introduced first in EF Core 2.0 and is just a query predicate that will be appended to the end of where clause for queries on entities for which this feature has been activated.