When it's in the same assembly as the context type, by using an assembly-level attribute that specifies the context type and compiled model type.