0

I am using POCO entities in my application.

So i have three files:

DBModel1.edmx
DBModel1.Context.tt
DBModel1.tt

Under DBModel1.tt, I have all POCO Entities.

Now my DB is copied to a new Server, wherein 1 new table has been Added to the database.

So I have to add one more POCO entity for new table.

Since now it's a complete new DB, I would have to create a new EDMX and tt files.

Is there anyway :

  • to make context.tt file point to new EDMX
  • to add new POCO Entities in existing tt file

Any help would be appreciated. Thanks.

4

1 回答 1

0

要将 .tt 文件指向另一个 EDMX 文件,您只需打开该文件并将其声明的文件更改inputFile为另一个路径。

于 2012-07-09T08:13:50.977 回答