After that ... I never found a solution that could detect this at compile time, but I was able to do this in code in a DataContext:
public EfMyCustomContext(string connctionString) : base(string.Format(CONNECTION_STRING, connctionString)) {
Hope this helps someone else and still enjoy it if there is some option during compilation.
source share