I have a little problem understanding repository-domain object relation. Here is some information I know about domain design(they may also be wrong or not accurate). And wit
I am trying to understand your query here. Some tips on how you can proceed. First of all the Domain should know the repository contracts and not the actual repository infrastructure. in other words, you may choose to have 3 class libs as follows
Now it's up to you to choose where to inject XYZSQLRepository to the XYZDomain using Dependency injection.
You can also try using eventing model to register these repositories if you want.
Use a custom Service Locator to get the concrete objects