摘要:
//1。将path 所制定的文件转成byte[] 类型数据byte[] b = File.ReadAllBytes(path);//2。存到数据库的方法就不说了注意的是 sql server 中存储btye[] 我用的是 Image 类型oracle 中 我用的是 Blob 类型//3。将byte[] 数据转换成指定try{ byte[] bt = "得到数据库中存储的 Blob(oracl) 或 Image(sql server) 数据"; string filename = path + "//" + file; //file 为上传时候文件带有后缀 阅读全文
posted @ 2007-10-25 12:05
草青工作室
阅读(450)
评论(0)
推荐(0)
摘要:
================================================红字部分是NHibernate 的配置 其它为 .net 自动生成的================================================<?xml version="1.0"?><!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的 “网站”->“Asp.Net 配置”选项。 设置和注释的完整列表在 machine.config.comments 阅读全文
posted @ 2007-10-25 11:40
草青工作室
阅读(180)
评论(0)
推荐(0)
摘要:
NHibernate 相关操作--------创建--------Person person = new Person();赋值,操作。更新:Person person = (Person)session.Get(typeof(Person), 1);赋值,更新。--------读取--------1.Person person = (Person)session.Get(typeof(Person), 1);2.子查询 string query="from login a where a.id in (from login b where uname='2222222222 阅读全文
posted @ 2007-10-25 11:22
草青工作室
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号