Documentation of free .NET O/R Mapper - Code Generator Invist

Loading data from a table asyncronous is very simple. In the designer of Invist you can define the classname independent of the tablename. In the following example we define the table "Employees" as "Employee" in .NET. The sample demonstrates how to load all entries of a table asyncronous. To see how to filter the result see filters.

var loader = new EntityLoader();

//*** Use anonymous delegate for hooking event
loader.LoadEntitiesAsyncCompleted +=
    delegate( object sender, LoadEntitiesCompletedEventArgs<Employee> e ) {
        var employees = e.Result;
        //*** Do some work with IEnumerable<Employee> employees
    };
loader.LoadEntitiesAsync();

The same way works for views

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam. Invist is powered by Mirko Meier