The Upshot? It's a Knockout: Listing 1.

The NorthwindController.Customer partial class.

Partial Public Class NorthwindController
  Inherits LinqToEntitiesDataController(Of NorthwindEntities)

  Public Function GetCustomers() As IQueryable(Of Customer)
    Return ObjectContext.Customers.OrderBy(Function(c) c.CustomerID)
  End Function

  Public Sub InsertCustomer(entity As Customer)
    InsertEntity(entity)
  End Sub

  Public Sub UpdateCustomer(entity As Customer)
    UpdateEntity(entity)
  End Sub

  Public Sub DeleteCustomer(entity As Customer)
    DeleteEntity(entity)
  End Sub
End Class

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Copilot Billing Shock Hits Developers

    Developer complaints about GitHub Copilot's new usage-based billing model have centered on unexpectedly rapid AI credit consumption, and neither GitHub nor Microsoft has responded directly to the backlash, though they have previously published guidance to lessen model usage costs.

  • Hands On with GitHub Copilot App Technical Preview: Turning a Blazor Issue into a PR

    GitHub's brand-new Copilot desktop app, in technical preview, handled a small Blazor issue from planning through pull request creation, but the hands-on test also showed why developers still need to verify agent work in the running app before merging.

  • At Build 2026, Microsoft Sets Up Windows as an OS for AI Agents

    Microsoft's Build 2026 Windows developer announcements point to a broader platform strategy for agentic AI, spanning terminal workflows, local models, app-building skills, Cloud PCs and operating system-level containment.

  • Slammed by Copilot Usage-Based Billing on Day 1, Facing $180 Bill for June

    A journalist using GitHub Copilot Pro details how a broken editorial workflow on day one of usage-based billing led to runaway token consumption, a projected $180 monthly bill, and practical tactics for cutting AI credit burn.

Subscribe on YouTube