如何使用.NET应用程序的SQL Server时间数据类型? [英] how to use sql server time data type in .net application?
本文介绍了如何使用.NET应用程序的SQL Server时间数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道如何使用SQL Server 2008中的C#.NET应用程序推出时间数据类型?我一直在试图得到它的工作,但没有成功。
Does anybody knows how to use time data type introduced in sql server 2008 in c# .net application ? I've been trying to get it to work but no success.
推荐答案
Here is an MSDN article that reviews all the new Date and Time datatypes introduced in SQL Server 2008 with respect to ADO.NET. As the document says: For System.Data.DbType.Time
you would use the .NET Framework type System.TimeSpan
这篇关于如何使用.NET应用程序的SQL Server时间数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文