摘要:
1.public IEnumerable<M_Student> ReadCollegeAndName(String collnum, String name) { return from s in dc.M_Student where(!String.IsNullOrEmpty(collnum) ? s.CollegeNum.Equals(collnum) : true) &&(!string.IsNullOrEmpty(name) ? s.Name.Contains(name) : true) select s; }2.利用Linq执行SQL,运用SQL强大的拼接 阅读全文
摘要:
int count = 4;//视频用4byte byte[] byteTemp = new byte[count]; int readCn = stream.Read(byteTemp, 0, 4); for (int i = 0; i < readCn; i++) { s += byteTemp[i].ToString(); } if (type == 1) { //flv mpg rmvb wmv avi 3gp 视频的判断 if (s == "00028" || s == "001186" || s == "46827770&qu 阅读全文