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 821925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:43:21+00:00 2026-05-15T02:43:21+00:00

I have created a very simple Entity Framework 4.0 model using VS2010 Professional. Ignore

  • 0

I have created a very simple Entity Framework 4.0 model using VS2010 Professional. Ignore the Nationality entity which is a simple one-to-many relationship.

I have an Entry entity which has a many-to-many relationship with the Team entity because an Entry can have more than one team. This is represented below:

Entity model example http://img709.imageshack.us/img709/5785/ef4mfexample.png

This then generates the following DDL:

...Some DDL...

-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------

-- Creating table 'Nationalities'
CREATE TABLE [dbo].[Nationalities] (
    [Id] int IDENTITY(1,1) NOT NULL
);
GO

-- Creating table 'Entries'
CREATE TABLE [dbo].[Entries] (
    [Id] int IDENTITY(1,1) NOT NULL,
    [NationalityId] int  NOT NULL
);
GO

-- Creating table 'Teams'
CREATE TABLE [dbo].[Teams] (
    [Id] int IDENTITY(1,1) NOT NULL
);
GO

-- Creating table 'EntryTeam'
CREATE TABLE [dbo].[EntryTeam] (
    [Entries_Id] int  NOT NULL,
    [Teams_Id] int  NOT NULL
);
GO

...More DDL...

As you can see I use TitleCaseId for my entity properties but the auto-generated entity which acts as a join table uses TitleCase_Id.

Rather than cause problems when others come to view the code is there an easy way of changing this somehow so that when the code is generated it can like my other entities both in the EDM and the DDL?

  • 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-15T02:43:21+00:00Added an answer on May 15, 2026 at 2:43 am

    You will notice on the properties Window when on the Entity Framework Model that there is a group of properties called “Database Script Generation”.

    What happens is that when you generate the scripts the Workflow “TablePerTypeStrategy.xaml” is run
    and uses a T4 template “SSDLToSQL10.tt” to transform your Entity Model into DDL scripts using the MS pre-defined conventions.

    The T4 template is located in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\

    You can edit the SSDLToSQL10.tt file using your preferred convention, I would back it up first or alternatively create a copy and edit the copy, the new file will show up in the “DDL Generation Template” drop down in Visual Studio.

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

Sidebar

Ask A Question

Stats

  • Questions 408k
  • Answers 408k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As this is set as your default provider it should… May 15, 2026 at 6:52 am
  • Editorial Team
    Editorial Team added an answer IMO the fundamental problem with a classic scrollbar is that… May 15, 2026 at 6:51 am
  • Editorial Team
    Editorial Team added an answer http://curl.se/docs/httpscripting.html See part 6. HTTP Authentication HTTP Authentication HTTP Authentication… May 15, 2026 at 6:51 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.