News

LightSpeed 1.0: Mastering Domains

New Zealand firm debuts object-relational mapping toolset.

New Zealand-based Mindscape Ltd. has released LightSpeed 1.0, a .NET object-relational mapping tool that the company says stands out due to its emphasis on domain-driven design patterns.

Mindscape Director Andrew Peters describes the tool as a domain-modeling framework, not just a mapping tool. "Practically, this means things like support for databinding, rich object level validation, property change notification, et cetera," he writes by e-mail.

LightSpeed employs a consistent set of conventions for building domain objects-an approach Mindscape calls "convention over configuration"-to reduce complexity and increase efficiency.

'Relatively New' Field
Peters asserts LightSpeed has been designed for easy use and initial feedback has been positive, but adds, "Domain modeling and O/R mapping in general is still relatively new to a lot of .NET developers. Similarly, some of the domain-driven design patterns employed may be unfamiliar."

In addition, the tool's documentation materials note LightSpeed's intrinsic limitations. It's primarily aimed at making it easier to complete projects requiring a consistent .NET domain model, and "is not designed to handle complex 'edge-case' scenarios or mapping domain models to existing complex legacy databases," the company notes. (Such tasks might better be handled by established products like NHibernate, according to Mindscape.)

LightSpeed Basics
Peters says the LightSpeed API is based around a pair of main classes, LightSpeedContext and Repository. "The LightSpeedContext is simply the top-level context for the application and is where things like connection strings are configured," he says. "The Repository encapsulates the idea of a unit of work-that is, a set of pending database operations. As entities are added, removed or modified they are added to the current unit of work and when the application is ready to persist it simply calls Repository.CompleteUnitOfWork to flush the pending changes."

The tool supports a range of common databases, including SQL Server 2005, MySQL 5, PostgreSQL 8, SQLite 3 and Oracle 9 or higher.

Other features include support for generic and nullable types; System.Transaction support when offered by the .NET database provider; and the ability to detect new entities and track changes to existing ones.

LightSpeed 1.0 Professional Edition costs $499.

About the Author

Chris Kanaracus is the news editor for Redmond Developer News.

comments powered by Disqus

Featured

  • Get Started Using .NET Aspire with SQL Server & Azure SQL Database

    Microsoft experts are making the rounds educating developers about the company's new, opinionated, cloud-ready stack for building observable, production ready, distributed, cloud-native applications with .NET.

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

Subscribe on YouTube