Hi,
I can help you on that, I need some more details, - are you getting any error when connecting to your mdf database? or are you facing issues regarding how to connect to your mdf file? or do you want to restrict permission of your application how it can access db?Please message me your problem I am ready to help you right now.
Thanks