fix for EFv6.
More info to xxx.App.config