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

Edit

InFilter

The InFilter represents the "in condition" in sql for example:

SELECT * FROM Products WHERE Products.SupplierId In ( 1, 2, 3, 4);

.NET Code looks like as follows:

// using Invist.Persistence.Database.Entities
// using Invist.Persistence.Database.Filters

var loader = new EntityLoader<Product>();

var filter = new InFilter( typeof( Product ), Product.SupplierIDProperty );
filter.AddValue( 1 );
filter.AddValue( 2 );
filter.AddValue( 3 );
filter.AddValue( 4 );

IEnumerable<Product> list = loader.LoadEntities( filter );

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