图像绑定WPF使用C# [英] Image binding wpf use c#

查看:76
本文介绍了图像绑定WPF使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我怎么能绑定图像我将实体数据库与applaction sqlserver一起使用

Thanks

dear all,

how can bindin image i use entity database with applaction sqlserver

thanks

推荐答案

这与WPF无关.如果您使用的是实体框架,则这是一个实体框架问题.我认为EF不直接支持复杂类型,您必须创建一个属性(即图像的字节流),然后将其与数据库中的适当列相关联.有关如何设计数据库以及如何使用EF的信息也将很有帮助.
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.


这篇关于图像绑定WPF使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆