Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8217613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:31:08+00:00 2026-06-07T12:31:08+00:00

I have an EDMX file with context.tt and .tt file. I have POCO classes

  • 0

I have an EDMX file with context.tt and .tt file.
I have POCO classes under .tt file.

I have one more EDMX with POCO files.

I want to copy some POCO classes from 2nd EDMX to 1st EDMX.

Please keep in mind that the tables are different in both the EDMX.

Just wanted to find out if its possible to copy one POCO class from EDMX and .tt file to
another.

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:31:10+00:00Added an answer on June 7, 2026 at 12:31 pm

    Solution was easy. Change the connectionstring of EDMX file.

    In my case I had to create a 2 Function imports for same stored procedure, each pointing to different databases.

    So I have created a new Function Import by rt-clicking on stored procedure in Model Browser.

    In Function Import we have option of creating Complex type. I needed to create a new Complex type since one table used in stored proc was having different columns.

    Once the Function import is created, just close the Model browser and build the solution.

    IDE will prompt for file name and new context.tt and .tt file will be created. Just copy the new POCO entities to the existing .tt file.

    Now we have 2 Function Imports and 2 POCO enties. Now we can point to either of Databases and things would work.

    Hope that helps for anyone stuck in similar scenario.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mapped the database in the edmx file from the database. Now how
I have created the POCO class and it's equivalent in edmx file (Category entity
I generate a model from my database. In the .edmx file I have a
I created some tables in an .edmx file and have been generating the database
Ok, so I'm not using Sql Client. I have an .edmx file in my
i have an entity-model file (edmx) file which contains few tables and few stored
I have in my web application an ADO.NET Entity-Framework *.edmx file. When I browse
I have an edmx model which I have draged 2 tables onto - One
I am working on asp.net application and I have generated entity model (edmx) from
I have several entities generated from my Entity Framework data model. In the .edmx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.