Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 Name 和 DateOfBirth 列的数据表,我想查询数据表以使用 LINQ 查询计算 Age。
int Age = DateTime.Now.Year - BirthDate.Year