Home  >  Article  >  Backend Development  >  What are the C# equivalents of SQL Server data types?

What are the C# equivalents of SQL Server data types?

WBOY
WBOYforward
2023-09-03 16:01:02720browse

SQL Server 数据类型的 C# 等效项是什么?

The following table shows the C# equivalents of SQL Server data types -

##varbinaryByte[]##binaryImage##varcharNonecharNonenvarcharString, Char[]ncharString, Char[]TextNone ntextNonebytes[]bitsBoolean valuebyteInt16Int32Int64DecimalDecimal##NumberDecimalDecimalDecimalReal numberSingle
SQL Server Data Types Equivalent C# data type
Bytes[]
None
##line version
tinyint
smallint
int
bigint
smallmoney
Money
##Floating point Double
Small Date Time Date Time
Date Time Date Time
Table None
Cursor None
Timestamp None
xml None

The above is the detailed content of What are the C# equivalents of SQL Server data types?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete