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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:36:43+00:00 2026-05-30T21:36:43+00:00

This does not seem to be explicitly listed as a feature in any of

  • 0

This does not seem to be explicitly listed as a feature in any of the sparse examples I can find, for example:

http://blogs.msdn.com/b/adonet/archive/2011/01/27/using-dbcontext-in-ef-feature-ctp5-part-1-introduction-and-model.aspx

http://www.codeproject.com/Articles/336187/code-first-practical-case

or

http://blogs.msdn.com/b/adonet/archive/2011/09/28/ef-4-2-code-first-walkthrough.aspx

But I think the DbContext docs at least imply that it’s possible:
http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext(v=vs.103).aspx

DbContext is usually used with a derived type that contains
DbSet properties for the root entities of the model. These
sets are automatically initialized when the instance of the derived
class is created.

My goal is to use the EF to access a DB through a WCF data service from a Silverlight client, where the some of the columns are unknown at runtime. Any better ideas 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-05-30T21:36:44+00:00Added an answer on May 30, 2026 at 9:36 pm

    Neither WCF or EF is suitable technology for this situation. WCF and its autogenerated proxies expects compile time defined model – you can avoid this but as a result you will not work with strongly typed data contracts but with “generic data” and you will work with them on XML or JSON level.

    In case of EF it is even worse there is no easy workaround to get dynamic behavior. You can change DB or even mapping (but not with code first – only with EDMX) in dynamic way but still at the end you need compiled classes representing your mapped data.

    The part of documentation you are referencing is not about dynamic creation of mapping but only about dynamic initialization of mapping defined in design time.

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

Sidebar

Related Questions

Is there a particular way to initialize an IList<T> ? This does not seem
This code does not seem to compile, I just need to write something to
I need a good OLEDate java implementation, and this one does not seem to
I tried this but it does not seem to be valid syntax. <xsl:element name=$myElementName></xsl:element>
I assumed joinable would indicate this, however, it does not seem to be the
I hope this question does not come off as broad as it may seem
This does not really apply to any language specifically, but if it matters I
This does NOT work: Sub X() Dim A As Access.Application Set A = CreateObject(Access.Application)
Ops: This does not belong to ServerFault because it focuses on Programing Architecture. I
anyone knows why this does not work when I try to include a library

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.