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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:31:41+00:00 2026-05-25T16:31:41+00:00

I have two edmx files at the moment: for MySQL and for SQL Lite

  • 0

I have two edmx files at the moment: for MySQL and for SQL Lite (to make in-memory tests). And I need to map them to the same set of POCO classes. Is it okay to keep two edmx files or should I use two storage models with common mappings and conceptual model?

Update. I would like to clarify in-memory tests point. I would like to use in-memory tests only while they are run by developer locally (to make it faster). But build server will run tests on MySQL to proof it works with production-like database.

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

    Don’t use different database platforms for testing. It is absolutely wrong approach with EF. Each database can have different feature support in its EF provider so you are going to test different code.

    If you really want to use two different database platforms you should use fluent API for mapping because it will make it much simpler.

    When using EDMX file for mapping you always need some duplicity. Obviously your classes must remain the same and so your conceptual model must remain the same as well. That means CSDL part of both EDMX files must be the same. SSDL part must be different because it is targeted to given database platform. MSL part must be different only if tables in SSDL have different names, different columns, different schemes or relations have different names.

    If you want to reduce duplicity you should not use EDMX at all but work with CSDL, MSL and SSDL files directly – you will lose designer support. This is perhaps correct but much harder to use.

    The simplest approach is keeping everything same except database provider and let some prebuild script update second EDMX for SQLite from the main EDMX fro MySQL – the script, helper application or XSLT transformation for this update is completely up to you.

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

Sidebar

Related Questions

I have two entities, each from a different database and therefore different edmx files.
We have two servers in the same network. One of them is the server
I have class name called Address in two namespaces. Its been two EDMX files,
Have two UIBarButtonItems want to make it as one UIBarButtonItem and toggle between them
Have two folders with approx. 150 java property files. In a shell script, how
I have two identical tables and need to copy rows from table to another.
I have these two tables in MySql: [Person] PersonId NameFirst NameLast [Email] EmailId PersonId
Suppose I have two table tab1, tab2. EF will create a edmx file and
We have two Assemblies that contain their own Entity-Framework EDMX & repositoriy objects. These
Have two variables both containing integers: var input; var value; Need to perform arithmetic

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.