刚刚接触EDM框架,如何创建ObjectContext对象?在EDM的Project下可以创建ObjectContext对象,但是在其它工程下创建ObjectContext对象的时候就会出错(运行时错误)。提示如下:    "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."
    具体操作是这样的:首先创建了一个放ADO.NET Entity Data Model的工程Model,创建数据库连接和Entity对象。
                      然后创建WinForm工程做为界面,想在WinForm工程中创建Context对象,从数据库中提取数据(只是练习,没有进行分层),现在可以在Model工程中创建Context对象,在WinForm工程创建Context,运行时就会报错。请大家帮忙解决一下,谢谢~~