Contracts
Changes from Daniel's pull request.
Fixes syntax error
Adds contract to validate max value.
Merge branch 'master' of github.com:jamestharpe/Rolcore

Conflicts:
	src/Rolcore.Repository.LinqImpl/LinqRepositoryWriter.cs
	src/Rolcore.Repository.Tests/Linq/Test.cs
	src/Rolcore.Repository.Tests/Linq/Test.dbml
	src/Rolcore.Repository.Tests/Linq/Test.designer.cs
Fixes issue with test setup creating using the wrong table name for detail entities.