As long as I’ve been teaching object-oriented programming, I’ve drummed this phrase (or something like it) into my students’ heads, to get across how interfaces are different than classes: For classes: A subclass inherits from its superclass dynamically: As new members are added to the superclass, they are automatically available for the subclass (Based on […]
Read MorePosts by
Entity Framework Custom Model Validation Attributes
In my training classes, students often can easily understand the benefits of validation attributes in their MVC Core application’s Model classes, as far as their use on individual model properties (Examples in this article are using MVC Core 3.1.1 on Visual Studio 2019) What you buy yourself here is client-side validation, as long as you […]
Read MoreAzure App Services with MFA
Decomposing the process for forcing logins with the MS Authenticator app My Zen mentor Alan Watts might say that the Microsoft Azure platform is “a source of marvelous accidents.” More pointedly, my high school programming teacher (We programmed Basic on a Wang 2200B, BTW) used to famously say “It’s fun when it works.” He never […]
Read More‘Happy Mistakes’ with FileResults in MVC5
Like many of my posts, this one comes from a student question in a training class. And as in many cases, the question prompts some digging, which results in me learning as much as the student. In this case, it became a lesson in doubling down on bad starting information. The Original Question How do […]
Read MoreEF Code First – Unraveling the Mystery
WHAT IT IS: Entity Framework’s Code First strategy has some beautiful syntactic sugar, but how it creates and manages Model classes isn’t always intuitive to find. WHY WE CARE: EF Code First can be a time-saving strategy when your database schema is still in flux at the beginning of a project’s life cycle. HOW IT […]
Read More