Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all,

how can bindin image i use entity database with applaction sqlserver

thanks
Posted
Comments
Varun Sareen 6-Feb-12 7:26am    
Please ellaborate your question or provide some code where you are facing problem.

Thanks

1 solution

This has nothing to do with WPF. If you're using Entity Framework, this is an Entity Framework question. I don't believe EF has direct support for complex types, you'd have to create a property that is the byte stream of the image, and then associate that with an appropriate column in your DB. Info on how you're designing your DB and using EF would be helpful, too.
 
Share this answer
 
Comments
khalid_rf 6-Feb-12 7:32am    
thanks
how can do it?
Christian Graus 6-Feb-12 7:35am    
I just told you. I don't think EF will handle an image natively, so you need instead to create a property that passes the bytes of the image to and from the DB as a byte [].http://www.bing.com/search?q=store+image+entity+framework&form=SMSTDF&pc=MASM&src=IE-SearchBox is how you'd use a search engine to find out more info.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900