Enums EF 5.0 - Database First

How can I make it so that my context objects uses the Enum feature in Entity Framework 5.0 if I am using Database First.

Answers


Go to the model browser and create a new enum type, then go to whatever column you wish to use it on and change its type to the enum that you just created.


Need Your Help

Detecting taps in uiimageview inside uiscrollview

iphone sdk uiimageview

I have a UIScrollView with multiple UIImageViews in it created like this.

How to check if current thread is not main thread

java android multithreading

I need to check if the thread running a certain piece of code is the main (UI) thread or not. How can I achieve this?