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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events