摘要: let子句,可以作为临时变量储存表达式的结果,但是let子句一旦初始化后无法再次进行更改。1. static void Main(string[] args) { string[] names = { "xyz", "now you see", "i can say"... 阅读全文
posted @ 2014-07-04 07:47 Genie in the bottle 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Join子句据说可以实现3中连接关系。1.内部连接——元素的连接关系必须同时满足被连接的两个数据源2.分组连接3.左外连接1.最基本的,内部连接,类似于sql中inner join。 由于student类和phone类只有一个匹配的连接,因此,只返回一个id,1. public class stud... 阅读全文
posted @ 2014-07-03 15:49 Genie in the bottle 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 特别喜欢同事看到我写了一句小排序的时候说,他当然喜欢Linq了,虽然我只是baidu之,不知其然也不知其所以然。基本格式 var = from in where orderby select 1. from & select static void Main(string[] a... 阅读全文
posted @ 2014-07-03 11:13 Genie in the bottle 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 之前接触一个往Console里输入参数的项目,资深QA教我怎么run,灰常脸红。 今日无事,baidu之。Step1 写简单Console Code. 1 class Program 2 { 3 static void Main(string[] args) 4... 阅读全文
posted @ 2014-07-01 13:35 Genie in the bottle 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1.关于时间1 SELECT GETDATE()2 SELECT DATEPART(d,'2014-05-20 14:20:55.347')3 SELECT DATEDIFF(d,'2014-05-20 14:20:55.347','2014-06-20 14:20:55.347')4 SELECT... 阅读全文
posted @ 2014-06-13 13:42 Genie in the bottle 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 这是我第一次写的组合条件查询,很丑,仅此纪念。(黑体总是显得跌跌撞撞没自信的赶脚有没有~~) 1 USE [exercise] 2 GO 3 /****** Object: StoredProcedure [dbo].[procstudent] Script Date: 11/10/2013 23:... 阅读全文
posted @ 2014-06-13 13:05 Genie in the bottle 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 关于SQL,一边恐惧一边前行,战战兢兢,如履薄冰。1.那些Maggie教我的事 因为脚本老是倒不齐全,QA某次跟我要了三次脚本,于是乎求助公司DBA. 利用SQL server本身的查询,找出最近修改的存储过程。1 SELECT NAME,modify_date FROM sys.all_objec... 阅读全文
posted @ 2014-06-13 12:51 Genie in the bottle 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Reflection; 2 3 using System.Data.SqlClient; 4 5 6 7 8 9 TransactionSelectTableAdapter adapter = new Transacti... 阅读全文
posted @ 2014-06-13 11:19 Genie in the bottle 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 第一次接触RadioBttonList时候,觉得这个控件完全可以取代RadioButton,操作更加简便。直到今天,完成了一个小小的功能,才发现,尺有所短不是瞎掰的。需求如下:Add Proration Rate radio buttons.Radio button for a fixed rateSelected by defaultMeaning using HR user for calculationRadio button for Based on old logic亲爱的Radio之间隔了其他控件,于是,List毫无用武之地。只能定义Group将Radio绑在一组内。前台 1 2. 阅读全文
posted @ 2013-11-18 20:26 Genie in the bottle 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: 在Gridview中加入Dropdownlist模板列,加入DropDownlist 是一种常用的操作,其中涉及到如何获取选择项和Gridview重新绑定两个要点。 如图 前台代码如下 1 2 3 4 5 6 7 8 9 62 63 64 65 66 67 68 69 70 73 74 75 76 77 78 ... 阅读全文
posted @ 2013-11-17 16:52 Genie in the bottle 阅读(631) 评论(0) 推荐(1) 编辑