I created a .mdf file by SQL Server and put it to a local file. I run my program in a computer which has no SQL Server installed. And also I used classes from t
.mdf
You may try using OrcaMDF which is an open-source project.
What is OrcaMDF?
A C# parser for MDF files. Allows you to read tables, metadata and indexes from MDF files without it being attached to a running SQL Server instance.
(this description is taken from project's page).
Author's blog