That’s simple:
- Embed your files as a resource in your DLL
- In your app.config change the connectionstring from:
<add name="KistlContext"
connectionString="metadata=.\Model.csdl|.\Model.ssdl|.\Model.msl;
provider=System.Data.SqlClient;
provider connection string='Data Source=.\SQLEXPRESS;
Initial Catalog=YourDatabase;
Integrated Security=True;
MultipleActiveResultSets=true;'"
providerName="System.Data.EntityClient" />
to:
<add name="KistlContext"
connectionString="metadata=res://*;
provider=System.Data.SqlClient;
provider connection string='Data Source=.\SQLEXPRESS;
Initial Catalog=YourDatabase;
Integrated Security=True;
MultipleActiveResultSets=true;'"
providerName="System.Data.EntityClient" />
It does not matter in which assembly the model is embedded.