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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube