Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
How to implement enum from database
Zeeshan Azim
Feb 19 2016 6:22 AM
395
Reply
I have several status in my projects
i.e Select StatusName from Status
I want to implement enums from database dynamically without T4. For example if I add a record in database table It should automatically reflect in my enum or on other hand if I update the same it should reflect that as well.
My sample enum is mentioned below
public enum Status
{
Pending = 1,
Approved = 2,
Rejected = 3,
Cancelled = 4,
Closed = 5,
Update = 7,
Draft = 8,
FLMPending = 9,
FINPending = 10,
HeadPending = 11,
Complete = 12,
OnHold = 13,
FundTransfer = 14,
Received = 15,
UnSettle = 16
};
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
regarding dependency of dropdownlist in asp.net c#
asp.net masterpage adminpage