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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:41:26+00:00 2026-06-15T14:41:26+00:00

I am trying to implement the project structure as explained in the following blog:

  • 0

I am trying to implement the project structure as explained in the following blog:

The blog

First i will explain my goal:
I am trying to create the following structure using EntityFramework 5

  • DAL – Include the EF 5
  • Model layer – include the POCO classes generated from the EF 5
  • MVC Project – Presentation layer

Now, this blog explain how doing it with EF 4, but in EF 5 there is no way to cut and paste the POCO entities is a different project.

Next i would like to create Metadata classes which extend the POCO entities

I have done the following:

  • Created a class project called (“DAL”) and created EF5 from database
  • Created POCO entities from the edmx file
  • Created a different class project called “ModelLayer”

Now my problem is that i can’t move the MyEntities.tt file from the DAL project to the “DataModel” project

Next i would like to create a Metadata classes which extend the POCO entities

Does any one succeed doing it?

  • 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-15T14:41:27+00:00Added an answer on June 15, 2026 at 2:41 pm

    If you’re using the .tt template file, at the top of the template file change the folowing line to point to your edmx file location in relative to your file structure

    in my template file it’s at line 5 (VB.Net) :

    Const inputFile As String = "..\..\..\SFHDDATA\OP.edmx"
    

    My edmx file is located here :

    C:!DEV\SFHD\Branches\iGEDIA_2\iGEDIA_2\SFHDDATA

    My other project with the tt file is here :

    C:!DEV\SFHD\Branches\iGEDIA_2\iGEDIA_2\SFHDModel\AGG\POCO

    When you recompile if you’re not pointing at the right folder you’ll get an error message.

    use @ before your path if you’re using c#

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

Sidebar

Related Questions

I'm working on a WPF project using MVVM and I'm trying to implement a
For a project I am trying to implement the JSCSSMergeServlet servlet. After following the
As a pet project I'm trying to implement an immutable list data structure in
I was trying to implement a Piece Table data structure using Linked Lists in
I am trying to implement MyBatis in my project at work. It is a
Trying to implement 3-layer (not: tier, I just want to separate my project logically,
I am trying to implement the jQuery UI framework for my ASP.NET project. And
I found this tutorial and am trying to implement it in my project http://www.androiddevblog.net/android/playing-audio-in-android
I have a Java project that I'm trying to implement with a model-view-controller design.
I am working on a project. I am trying to implement the core as

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.