在Lightswitch中将文件添加到数据库 [英] Add File To DB in Lightswitch

查看:83
本文介绍了在Lightswitch中将文件添加到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi guys , i want to add binary document to my lightswitch application 

 

我按照这篇文章中的步骤进行操作: 

i follow the steps in this post : 

Example code to upload files:

推荐答案

Omar嗨

如果您有一个实体文档,请替换??????与

As you have one entity Document replace ?????? with


Document document = this.DataWorkspace.ApplicationData.Documents.AddNew();
document.Description = this.DocumentProperty.Description;
document.File = fileBArray;


这篇关于在Lightswitch中将文件添加到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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