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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:24:07+00:00 2026-05-30T09:24:07+00:00

I want to create a dynamic datadriven application for practice purposes. If I have

  • 0

I want to create a dynamic datadriven application for practice purposes.

If I have a Modell with a Entity and I need a new one, then I want to create it only in the Diagram (modell) and thats all.

Everything else should be done dynamically, adding the new entity to b.e a Listbox, make it clickable and create a “Show Datas” and a “New/Edit” Tab with the right labels and textboxes in it. (For editing/creating new)

What I would like to know is, how can I:

  1. Get the number of the entities
  2. Is it possible to update the database, without needing to delete it and create new (Else I would loose all Data), if hopefully yes, how?
  3. Get all the fields from a Entity? (Do I must work here with Reflection?)

Hope someone could help

  • 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-30T09:24:08+00:00Added an answer on May 30, 2026 at 9:24 am

    1.Get the number of the entities

    Using Context object you get the list of entities. there you can use the .Count() to check the no of entities of that type.

    2.Is it possible to update the database, without needing to delete it and create new (Else I would loose all Data), if hopefully yes, how?

    This question is little unclear. you want to delete database.. or entity?? you can do any operation on entities that will be reflected on back end if you want. Regarding database delete and create operation, entity framework is not designed for.

    Yes you can add new entity to model and then map it with the back end tables.. it is possible to modify the model as per your backend. Even you can create you custom entites that reflect operation on multiple tables on the database but with some care about data integration.

    3.Get all the fields from a Entity? (Do I must work here with Reflection?)

    Yes.. To access the properties of Entity with out knowing their name you should go through reflection.

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

Sidebar

Related Questions

I have an .NET 4.0 application using Caliburn.Micro. I want to create a dynamic
I want to create a dynamic object in Python and then add attributes to
I have some data and want to create some dynamic charts. I have looked
in my application i want to create dynamic datalist i created but it is
I need to create dynamic radio button in my table.I have a table in
I want to create a dynamic queue (using the keyword new ) with an
I have issue where i want to create Dynamic function which will do some
I want to know how to create dynamic table in mySql . I have
I have a website and I want to create a dynamic sitemap for it.
I want to create a dynamic button and have to access it in action

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.