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

  • SEARCH
  • Home
  • 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 6778659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:17:30+00:00 2026-05-26T16:17:30+00:00

I have an edmx file that I generated using edmgen2, I am using the

  • 0

I have an edmx file that I generated using edmgen2, I am using the POCO Entity Generator.tt file that Visual Studio uses or generates when I click “Add Code Generation Item” in the edmx designer.

I want to generate the cs (C#) files that Visual Studio generates (including views and stored procedures), but in command line using the TextTransform.exe.

First, is this even possible with only the edmx and tt file? if not, what’s the right way to do what I’m trying to do.

If it is possible, then what’s the correct syntax?

Thanks a Bunch!

  • 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-05-26T16:17:31+00:00Added an answer on May 26, 2026 at 4:17 pm

    If I understand you correctly you have an EDMX containing the model and .TT file that generates the C# artifact.

    So I made a simple experiment where I took a simple EDMX file and the OOB .TT file and ran TextTransform.exe on the .TT file. It worked fine except I had to copy the EF include file into the same folder as the .TT file.

    The .TT file uses the host to resolve paths but TextTransform.exe supports this submethod of host methods as well.

    For me once I found the TextTransform.exe and the EF include file it was as easy as this to generate the C# artifact:

    TextTransform.exe Model1.tt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Entity Framework 4 with the POCO code generator. I have a
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
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have several entities generated from my Entity Framework data model. In the .edmx
I have an entity model build using EF4.1 code first, which uses a WCF
I have this EF database-first EDMX file that I created it with a local
I have mapped the database in the edmx file from the database. Now how
When I right-click in a .EDMX file and click Generate Database From Model ,
I have a .edmx file and I can't open it with the designer. It

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.