Bits and bobs

EF Global Filters

These can be set up in OnModelCreating so that the default case is that the deleted items are not returned.  This can be overriden for specific queries using IgnoreQueryFilters.

builder.Entity<Thing>().HasQueryFilter(p => p.Deleted);

Displaying text over an Image

For this we need to set the container div style to  position: relative and then the text to position: absolute.  Then set the bottom so that it appears in the corrrect place.

Comments

Popular posts from this blog

Understanding the technologies - Angular 8 and ASP.NET Web API Core 3