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

Edit

ConstandValueFilter

The ConstandValueFilter represents the "compare condition" with a constant value in sql for example:

SELECT * FROM Products WHERE (Products.SupplierId = 1);

.NET Code looks like as follows:

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

var loader = new EntityLoader<Product>();

var filter = new ConstantValueFilter(
    typeof (Product), 
    Product.SupplierIDProperty,
    CompareOperator.Equal, 1);

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