This project is read-only.

Magiq offers mass updates, deletes and inserts to Linq-to-Sql. This allows you to have a strongly typed query using linq that represents, for example, singles updates, delete or insert sql statements. Currently, Magiq supports collection queries, deletes, inserts, updates and association updates.


products.Where( x=> x.ExpirationDate <= DateTime.Now ).Set( x=> x.State, ProductState.Expired ).Update();

Will generate the following sql statement:

UPDATE [t0] SET [t0].State = @p2 FROM Products [t0] WHERE [t0].ExpirationDate <= @p1

Last edited Apr 28, 2011 at 11:21 PM by ivos, version 5


No comments yet.