- 博客(18)
- 资源 (18)
- 收藏
- 关注
原创 subsoic积累
查询 不同条件 SqlQuery select = new Select().From() .InnerJoin(DAL.Organ.Schema).InnerJoin(DAL.Role.Schema).InnerJoin(KcTab.Schema).InnerJoin(PbbzTab.S
2009-12-13 17:57:00
375
原创 subsonic配置
xml version="1.0"?>configuration> configSections> section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/> configSections> connectionSt
2009-12-04 22:13:00
464
原创 使窗体只弹出一次
//使窗体只弹出一次 if (Application.OpenForms["CollectInfo"] == null) { new AppUI.TaxItem.CollectInfo().Show(Model.Instance.dockPanel);
2009-12-04 22:11:00
336
原创 检测网络是否通畅
using System.Runtime.InteropServices;[DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue);private static bool
2009-12-04 22:10:00
626
原创 启动安装路径
文件路径安装路径下string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "V09模板");
2009-12-04 22:08:00
306
原创 反射弹出新窗体
反射 } string path = this.GetType().Assembly.FullName; Form form = (Form)Assembly.Load(path).CreateInstance("AppUI.TaxItem." + formname);
2009-12-04 22:04:00
318
原创 事件传值
代理事件传值using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms; namespace 代理事件传值
2009-12-04 22:00:00
323
原创 sqlite
IList aa= DB.Select().Top("5").From(UserInfo.Schema).ExecuteTypedList(); //返回 UserInfoCollectionUserInfoCollection users = new UserInfoCollection().Where(UserInfo.Columns.Password, Sub
2009-12-04 21:46:00
472
原创 subsonic事务
1事务其实使用得比较多的应该是using(...){}这种事务方式 using (TransactionScope ts = new TransactionScope())using (SharedDbConnectionScope scope = new SharedDbConnectionScope()){ .数据库操作代码} SharedDbConn
2009-12-04 21:44:00
822
原创 subsonic
IList aa= DB.Select().Top("5").From(UserInfo.Schema).ExecuteTypedList(); //返回 UserInfoCollectionUserInfoCollection users = new UserInfoCollection().Where(UserInfo.Columns.Password, SubSonic.C
2009-12-04 21:34:00
580
原创 listarray代理
1、 resultList=myList.FindAll(delegate(itemType x){return x.id==i;}); 2、 List ysgxblistflag = ysgxblist.FindAll( // // delegate(Entity.ysgxb ysgxbmodel) // //
2009-12-04 21:30:00
389
原创 c#关于相对路径
如果你的图片放在 E:/C#/Temp/Path/下 在调试状态下一般你的工作路径都是E:/C#/Temp/Path/bin/Debug(假设你把你的项目装在了E:/C#/Temp这里),"..//"字符串的意思就是跳到当前工作路径的父文件夹,这样"..//..//Image"就到了Image文件夹这里了啊,这就是相对路径,../跳到当前工作文件夹的父文件夹
2009-07-08 17:29:00
662
原创 关于sql2000安装问题(挂起)转
(1)解决SQL Server安装挂起在安装sql server时出现“以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前必须重新启动计算机”错误。无法进行下去。 参考有关资料后,以下步骤基本可以解决:1)添加/删除程序中彻底删除sql server。2)将没有删除的sql server目录也删除掉。3)打开注册表编辑器,在HKEY_LOCAL_MACHINE/SYSTE
2009-06-13 21:14:00
353
原创 css选择器模式
选择器模式模式 描述E 类型选择器,匹配任何一个名为 E 的元素。E F 子选择器,匹配元素 F ,如果 F 出现在元素 E 之内的话。E > F 父/子选择器,匹配元素 F ,如果 F 是 E 的子元素。E + F 相邻选择器,匹配元素 F ,如果 F 和 E 拥有共同的父元素,且 F 紧随 E 之后。这里有必要解释一下“父元素”、“子元素”、“父/子”及“相邻”这几个概念。为了便于说
2009-04-22 19:35:00
298
原创 datagridview学习总结
编辑模板可以在ItemTemplate中设置格式,例如可以向其中加入radiobuttun,label等进行数据绑定。绑定可以自动绑定,也可以手动绑定。手动绑定方法,("A"+Eval("字段名").substring(0,5))对字段从0开始截取5个字符。
2009-03-25 22:04:00
270
原创 c# 如何求出符合条件的总条数
一种使用select * from 数据库名然后用ds.tables[0].rows.count;另一种 用 select count(*) from 数据库名 新建commmand对象cmd用cmd.ExecuteScalar().ToString() 读出.代码如下 string connectionstr = "Provider=Microsoft.Jet
2009-03-23 18:50:00
755
原创 c# 产生不重复随机函数
可以用c#自带的函数生成随机数Random ro=new Random();int iup=0;int idow=20;iresult=ro.Next(iup,idow);至于如何产生不重复的10个随机数可以用下面的方法static void Main(string[] args) { int[] a = new int[10];
2009-03-23 18:07:00
4022
软件项目技术总结报告
2010-06-22
生成三层架构的利器生成三层架构的利器生成三层架构的利器生成三层架构的利器
2009-08-15
SubSonic软件SubSonic软件SubSonic软件SubSonic软件SubSonic软件SubSonic软件
2009-08-14
SourceGrid4.9著名的开源网格
2009-06-12
css电子书(可以用开作为学习css的参考)
2009-06-04
网络书店v1.0借鉴PetShop4.0的三层架构
2009-06-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人