windows phone 存储图片 数据库写法
byte[] _DiseaseImage;
[Column(DbType = "Image", UpdateCheck = UpdateCheck.Never)] //保证图像超出8K时不会出错
public byte[] DiseaseImage
{
get
{
return (byte[])this._DiseaseImage;
}
set
{
if (this._DiseaseImage != value)
{
OnPropertyChanging("DiseaseImage");
this._DiseaseImage = value;
OnPropertyChanged("DiseaseImage");
}
}
}