16,006,378 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by vishalharne (Top 5 by date)
vishalharne
24-Aug-15 6:29am
View
yeah that could be the only option left I guess.. I will try to find some more options.. the only pain is if there are 80 tables I have to write 80 statements
thanks Andy ...
vishalharne
24-Aug-15 6:09am
View
Thanks Andy for the quick response. This looks great, but what i really want is -
List
addresses = Factory< workers.address >.SelectAll< address > ();
Customer customer = Factory<workers.customer>.SelectById<customer>(id);
In the above code, can we remove the tight coupling of Factory<workers.address> ?
can we somehow manage to implement Factory < generictype > ??
factory < something which can be resolved at run time > ??
I tried this..but it doesn't takes an type of 'Type', so becomes difficult.
Let me know if you got me. appreciate your help ^_^
Vishal
vishalharne
24-Aug-15 5:39am
View
Okay Will search if I can get something.. if not I will try ADO .net
vishalharne
24-Aug-15 5:21am
View
Thanks F-Es ,
appreciate your concern here, but this requirement is something like I have to read data one table on request and there are such 80 tables, so I didn't wanted to repeat that code instead I was thinking i anything generic could be a used.
vishalharne
24-Aug-15 5:19am
View
Hi Andy,
Thanks for your reply. What I am trying to achieve is read data at run time from various tables. so i don't want to write the same code repeatedly with one change and that is table name.Instead if I could write just one method and a table name string passed to it, and then using reflection if I could read through context... I am not sure if it could be done . sorry if I am not clear at explaining