Pushing the Entity Framework connection string to config
Posted: Fri 26 Jun 2009 22:50
When Entity Developer code gens it puts the connection string into the generated class rather than into a configuration file and it doesn't put the res://*/ in front of the csdl, msl, and ssdl files so that when trying to use it (say from a Console app accessing the model in a data access layer dll) it can't find the files. I can manually add the res://*/ in and that will work until the model gets code generated and then my changes get blown away - this makes for a lot of rework updating those files or writing manual code to create the context. It is such a hassle that it reduces the usability of Entity Developer especially on an ongoing basis with existing models.
________
________