摘要:
新建一个Console测试项目:Test 添加代码 using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { Console.Write...
阅读全文
posted @ 2007-06-15 16:47
lovebanyi
阅读(1187)
推荐(0)
摘要:
新建一个测试站点添加 一个页面 test.aspx 在页面上拉出一个label控件命名为了 labTest添加两个特殊的文件夹App_GlobalResources App_LocalResources 右键单击App_LocalResources 添加一个新的文件 命名为 test.aspx.resx 打开test.aspx.resx 添加一条新的记录 名称:labTest 值:测试复制test...
阅读全文
posted @ 2007-06-15 16:30
lovebanyi
阅读(932)
推荐(0)
摘要:
when i use hql to query many to many realationship query,i find on i use Count function it is all return -1hql = "select xxx from ...."i delete "select xxx" Count is work rightbut sometimes we nedd us...
阅读全文
posted @ 2007-06-07 09:02
lovebanyi
阅读(184)
推荐(0)
摘要:
来源:http://wiki.castleproject.org/index.php/ActiveRecord:Troubleshooting故障检测有时候你的映射可能存在一些错误,或者你想看你的sql语句到底是什么一回事这个时候我们就需要把 NHibernate 的日记记录打开允许日记记录nhibernate用的是log4net. 以下的配置中他是将信息写到 log.txt中的(程序运行的时候被...
阅读全文
posted @ 2007-06-05 16:33
lovebanyi
阅读(388)
推荐(0)
摘要:
.Net 2 connection strings 官方的没有说得不过明白(http://www.castleproject.org/activerecord/documentation/v1rc1/advanced/connstringdotnet2.html) ...
阅读全文
posted @ 2007-05-23 16:32
lovebanyi
阅读(522)
推荐(0)
摘要:
First we need to create a Highlighter instance; Highlighter hl = new Highlighter(new SimpleHTMLFormatter("",""),new QueryScorer(query)); Use GetBestFragment method get the result row["Name"] = hl.G...
阅读全文
posted @ 2007-05-21 15:44
lovebanyi
阅读(1491)
推荐(0)
摘要:
写一些数据抓取工具的时候.我们一般是查看网页的源代码.然后把源代码拷到 regulator哪边去检测.开始写正则.这个时候一个,难以查觉的错误发生了.有时候你会发现.你写的正则在regulator里一切都是正常的.可是一到代码哪边就不正常了.于是开始郁闷.到底是什么一回事.我自己一直在找这个原因.开始了这样的一个尝试.自己在页面拉了一个richtextbox,把程序下载到的源代码,copy过去.这...
阅读全文
posted @ 2007-05-16 18:37
lovebanyi
阅读(406)
推荐(0)
摘要:
看到同事在用int? xx;加了个 "?" 就变成了可空类型了.本身是引用类型的加 ?通不过编译.
阅读全文
posted @ 2007-05-16 10:45
lovebanyi
阅读(183)
推荐(0)
摘要:
我们想到的是将xml反序化.这们就可以得到这个对象了 [Serializable()] [XmlRoot("FetcherConfig")] public class FetcherConfiguration { /**////某些属性 public static FetcherConfiguration GetConfig() ...
阅读全文
posted @ 2007-05-10 18:23
lovebanyi
阅读(749)
推荐(0)
摘要:
在 Windows Vista 中,有两个语音 API: • 用于本机应用程序的 SAPI 5.3 • WinFX 中的 System.Speech.Rec...
阅读全文
posted @ 2007-05-10 14:19
lovebanyi
阅读(1561)
推荐(0)