LicenceTypeId is a nullable field - this is the reason the following code cannot be compiled if using a composite key - it\'s OK only for a simple<