Introduction
Crystal Mapper is very simple ORM and supports LINQ queries. Its written to compete with ADO.NET DataSet fetch speed and provides fairly simple API structure to play around.
Examples of search, update ... are shown in
documentation
It is fast because it does not do any heaving loading task all by itself, instead leaves it to object for filling itself up when ask by Crystal Mapper. Don’t you worry about writing code for manually filling data into objects, Crystal Mapper include Templates
for generating classes and it is integral part of ORM. Templates are written for CodeSmith (A code generator tool), you can use trial versions of CodeSmith for now (http://www.codesmithtools.com).
Quick Start
Video tutorial: http://www.youtube.com/watch?v=5_0UxY55ZF4
To Get Started:
- Download Release 2.2.3.0.
- Open Crystal Mapper solution
- Create Northwind database from SQL script attach in test project
- Point “Default-Db” connection string to the database you have created
- You are all set to try Crystal Mapper.
Release 2.2.3.0 supports
- Tracking dirty entities and provide Save function to save all entities in relation loop
- Associate entity automatically when added to children collection.
- Entity will offer events to track for any changes, very useful in event driven approach
- LINQ support
Note: CrystalMapper uses CoreSystem (a small library) for RDMS independent API calls. (http://coresystem.codeplex.com)
|
|
|