随笔分类 -  工作

数据库连接字符串
该文被密码保护。
posted @ 2014-06-12 23:16 随心所意
SQL float 保留两位小数
摘要:1. SQL 数据库里类型改为numeric,小数位设置成22. 在SQL语句中转换:select convert(字段,numeric(18,2)) AS 字段3. 在DataFormatString的绑定列的属性中设置为 阅读全文
posted @ 2014-06-05 10:04 随心所意 阅读(6124) 评论(0) 推荐(0)
Rest中获取制定操作的UriTemplate
摘要:1 UriTemplate uri = WebOperationContext.Current.GetUriTemplate("DownloadFile"); 阅读全文
posted @ 2014-04-30 09:04 随心所意 阅读(675) 评论(0) 推荐(0)
Rest文件下载
摘要:public void DownloadFile(string fileId) { //Stream fileStream = null; try { int fileID = Conve... 阅读全文
posted @ 2014-04-29 14:28 随心所意 阅读(2084) 评论(0) 推荐(0)
Rest文件上传
摘要:文件上传时传过来一个stream代码如下: 1 /// 2 /// 上传文件 3 /// 4 /// 文件名 5 /// 文件流 6 /// 7 public ResponseType Uploa... 阅读全文
posted @ 2014-04-29 14:21 随心所意 阅读(1430) 评论(0) 推荐(0)