TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Seshu B
NA
442
145.9k
How to pass table name dynamically in entity framework mvc5
Jun 5 2017 5:37 AM
Hi all
i want to pass tablename as dynamically to get column names list in mvc5
i have tried like this
public List<string> GetColumnNames(string tablename)
{
using (var Context = new MCPEntities())
{
var names = typeof(AdministratorInformation).GetProperties().Select(property => property.Name).ToArray();
return names.ToList();
}
}
Reply
Answers (
1
)
Getting Issue in IIS Server
find same words in string expression