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

The Archive Base Latest Questions

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

I have a problem in understanding some basic concepts here i think … I

  • 0

I have a problem in understanding some basic concepts here i think …
I am working on creating a a project for managing a complex database, (i am using linq to entities for my database that is in ms-sql 2012 and WPF )
I have 2 main problems:

I want to create a generic view for editing (remove update and insert) a large amount of tables from the database, i have no problem creating the list of tables manually but after that how can i manage it in a generic way ?
linq to entities does not allow doing something like :

string tableName = listbox.selectedItem.value;
var a = from p in db.tables[tableName] select p;

and even if i make all this manually for each table how can i create a UI that edits the information ? i need to dynamically create a form/view/user_control for editing that will contain items such as textbox and datetimepickers for each column… but i cannot make a generic selection for a table …

The other problem i have is manipulating data,
lets say i have a TASK table in the database

var tsks = from p in TASKs select new {p.task_id, p.task_description, p.task_date}

and i want to load it all to a gridview but instead of the task_date column i need it to be manipulated from a function for example :

02/12/2012 will show "From Today"
30/11/2012 will show "From 2 days ago"

and i just dont know how to connect this kind of function to the data-binding
I’ve tried creating sql-functions
I’ve tried calling functions in the code and tried to create extension functions for the entity but always got stuck and failed.

Just to make things clear, i have some nice experience in .net tech but WPF and LINQ is new to me,
i could easily create all Above in asp.net or windows form application using direct contact to the SQL DB without linq
therefore i understand i have a problem with some basics understanding and would to get answers to my 2 questions and will be more than happy to get directions to relevant tutorials

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

    I’ll try to answer the second question. I recommend you read a little about binding in WPF and the MVVM design pattern first, it will help you understand how to use WPF’s datagrid, it’s works different that in win forms.

    And to answer the question, After you bind the date property to a column, you can easily create a value converter, see this example:
    http://wpftutorial.net/ValueConverters.html.

    In your case you’ll need a DateTime to string converver

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

Sidebar

Related Questions

I have a problem with understanding of some basic OOP concepts. I'll try to
I think I have some basic understanding problem so maybe someone's able to help
I think i have a basic problem in understanding the dojo toolkit. Well I
I think I have a problem in understanding the proper way of using MVC.
I have some small problem in understanding Value Objects in Flex... I'm trying to
hello everyone I have some problem with understanding this piece of the code: import
I have very basic understanding problem of Content types. I went through lot of
I have a problem understanding some code fragment from Matlab Signal processing Toolbox fir2()
I'm having some trouble understanding basic git concepts :/ I'm testing on my local
I have basic understanding problem with open source and licenses. Could someone please clarify

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.