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.
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
Post a Comment