摘要:
/// /// 获取指定年份的总天数。 /// /// 年份。 /// 返回指定年份的总天数。 public int DaysInYear(int year) { DateTime dt = new DateTime(year, 12, 31); return dt.DayOfYear; } /// /// 获取指定年份的总天数。 /// /// 年... 阅读全文
摘要:
Insert news (cat) values (3); Select @@IDENTITY 在dotNet中取得该值:int tID = Convert.ToInt32(cmd.ExecuteScalar());注意:不能通过(int)转换。 阅读全文