This project is read-only.

CoNatural Components v1.7

Rating: No reviews yet
Downloads: 69
Change Set: 48764
Released: Jul 14, 2010
Updated: Jul 20, 2010 by conatural
Dev status: Beta Help Icon

Recommended Download

Application CoNatural Components v1.7
application, 180K, uploaded Jul 14, 2010 - 69 downloads

Release Notes

  • Released two sets of components - compiled with VS2008/.NET 3.5 and VS2010/.NET 4.0
  • Added Visual Studio 2010 Solution and Project files (with .2010 suffix). Binaries are compiled to /bin/2010 folder. Using .NET framework 4.0
  • Started CoNatural.Dto project to support basic DTO functionality, including self tracking DTOs and DTO collections (work in progress).
  • BeforeExecute event added to IConnection to intercept commands before execution (for tracing, debugging)
  • Type mappers now support parameter mappings to indirect references (to scalar properties). ITypeMapperFactory caches indirect references to be used later in the mappings.
  • New useBatch flag in all IConnection.Execute methods that can generate a batch script.
  • Cloning data commands in data command factory (issues when reusing parameters fixed).
  • New option in Visual Studio AddIn - Command Designer : To deploy command as stored procedure.
  • New Visual Studio AddIn option - To create new (empty) CoNatural commands from project/folder popup menus. Created T4 template to generate new empty commands or commands from existing stored procedures.


  • Replaced HandleException virtual method with "Error" event.
  • Created execution context for single command and batch execution (for better code reuse and common interface for events).
  • Renamed method that executed commands as data readers returning first record as instance of T from T ExecuteScalar<T>(..) to 3 versions of overloaded T Execute<T>(...).
  • Materializer interface changed to receive materializer factory as first parameter (to create new materializers inside callbacks). Interface members renamed to "Materialize".
  • New batch execution method receiving binder callback that returns tuples of <object, ICommand> for more flexible transformations from source objects. (e.g. when binding entities to commands from RIA services ChangeSetEntries list).
  • ITypeMapper interface changed, and MapperCallback removed. Support for indirect references.
  • Refactored SqlClient db provider and ConnectionBase (to reuse more code).
  • Created CommandHost type as custom templating host.
  • Ignoring dynamic assemblies when compiling optimized materializers.

Important: If you are generating commands with the Visual Studio Add-In using VS2010/.NET 4.0 and the T4 templates included in this package, you must remove the language directive referencing .NET 3.5.

The source code is available under the Source Code tab, Change Set 48764

Reviews for this release

No reviews yet for this release.