随笔分类 -  c#

摘要:——杨中科老.Net师视频笔记 C#基础之ADO.Net笔记51第一个mdf项目2 文件结构:2 Login.cs(program.cs)2 登录练习18 文件结构:8 Program.cs9 Form1.cs10 数据的导入导出12 文件结构:12 ... 阅读全文
posted @ 2011-09-15 14:54 维唯为为 阅读(1041) 评论(0) 推荐(1)
摘要:数据分组: 1.查询的字段只能是所要分的[组的属性](如聚合函数 avg()某一组的平均值 max()某一组的最大值等,也可以是属于某一组的某个特殊成员属性等),以及要用来分组的字段,即某一组的过滤信息,且不可缺少。 2.聚合函数不能出现在 where 子句中,但可以出现在 having 子句中,且 having 子句中只能包含分组的字段和聚合函数,即having也只能存放某一组的过滤信息。 3.having是对分组后的信息的过滤用的列和select中能用的列是一样的,having无法代替where。 限制结果集的范围: 例: select top 3 * from T_Employee (只 阅读全文
posted @ 2011-09-15 13:32 维唯为为 阅读(261) 评论(0) 推荐(0)
摘要:1. WinForm基础 Form1.csusingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; namespaceWinsForm基础 { publicpartialclassForm1:Form { publicForm1() { InitializeComponent(); } private.. 阅读全文
posted @ 2011-06-07 11:30 维唯为为 阅读(777) 评论(0) 推荐(0)
摘要:1.面向对象简介using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace C_Sharp面向对象基础{ class Program { static void Main(string[] args) { Person p1 = new Person(); //p1.Name="tom"; p1.Height = 180; p1.Age = 30; p1.Sa... 阅读全文
posted @ 2011-05-31 21:33 维唯为为 阅读(275) 评论(0) 推荐(0)
摘要:1. C#基础 usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){/*Console.WriteLine("hello!");strings=Console.ReadLine();//用户输入文字时,程序是暂停的,回车后把输入的作为返值,并存放到s当中Console.WriteLine(s+"你好");//输出 阅读全文
posted @ 2011-05-30 17:31 维唯为为 阅读(781) 评论(0) 推荐(0)