-
Notifications
You must be signed in to change notification settings - Fork 31
news
Source codes, releases and documentation moved from google code and Mercurial to GitHub and git. Legacy address of old hosting: http://code.google.com/p/genericrepository/
Rebuilded with latest libraries
- NHibernate 3.1.0 with build-in LINQ provider
- Latest Autofac, LinFu DynamicProxy, NUnit Bugfixes. Clean up.
Entity Framework is still CTP4, EF 4.1 is now Release Candidate (RC), waiting for official release.
Extended ISpecificationResult with following useful common functionality:
- Skip
- SingleOrDefault
- OrderByAscending
- OrderByDescending Added implementation for IQueryable based specification result and NHibernate ICriteria based specification result. Added unit tests.
See GenericCustomerRepositoryFixture.cs, test method GetCustomersButSkipSome() for comments and play with it to experience the issues.
NHibernate 2.1.2.4000 with NHibernate LINQ compiled for this version
Only NH is able to correctly handle Skip command (also together with other commands like OrderByXXX) and has to dependencies on concrete command position in fluent interface call.
Linq2Sql that ships with .NET 4.0
Linq2Sql ignores OrderByXXX command if present AFTER Skip call.
Entity Framework 4.0 with extensions CTP4
EF is not capable of handling Skip command without preceeding OrderByXXX command. It will not handle Skip command if OrderByXXX is after the Skip, the OrderByXXX MUST GO BEFORE Skip command. Otherwise it throws.
Fixed unit tests and added test initialization code. As CTP currently have no support for clearing tables before each test run, we have to clar the tables manually. Hopefully this will be resolved by MS team in future.
Features CTP4 assembly is included in the Lib folder, no need to install it explicitely. Only need is to have entity framework 4 that ships with .NET 4.0. Feature only available in source code, release build of assembly haven't been done yet.
Initial design of the generic repository. Design of queries and filters. Unit tests.