diff Tools/CodeGenerator/ValueMapping.xml @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Tools/CodeGenerator/ValueMapping.xml	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<code transformer="ValueMapping.xslt">
+
+	<using namespace="System"/>
+	<using namespace="System.Data.SqlTypes"/>
+
+	<!--
+	Short type names.
+	'A' => Arrays,
+	'N' => Nullable<>,
+	'I' => Integer types,
+	'U' => Unsigned integer types,
+	'R' => Real types,
+	'db' => Sql types.
+	-->
+	<nick type="Object"      name="O"/>
+	<nick type="String"      name="S"/>
+	<nick type="Char"        name="C"/>
+
+	<nick type="SByte"       name="I8"/>
+	<nick type="Int16"       name="I16"/>
+	<nick type="Int32"       name="I32"/>
+	<nick type="Int64"       name="I64"/>
+
+	<nick type="Byte"        name="U8"/>
+	<nick type="UInt16"      name="U16"/>
+	<nick type="UInt32"      name="U32"/>
+	<nick type="UInt64"      name="U64"/>
+
+	<nick type="Single"      name="R4"/>
+	<nick type="Double"      name="R8"/>
+
+	<nick type="Boolean"     name="B"/>
+	<nick type="Decimal"     name="D"/>
+
+	<nick type="Guid"        name="G"/>
+	<nick type="TimeSpan"    name="TS"/>
+	<nick type="DateTime"    name="DT"/>
+
+	<nick type="SqlString"   name="dbS"/>
+
+	<nick type="SqlByte"     name="dbU8"/>
+	<nick type="SqlInt16"    name="dbI16"/>
+	<nick type="SqlInt32"    name="dbI32"/>
+	<nick type="SqlInt64"    name="dbI64"/>
+
+	<nick type="SqlSingle"   name="dbR4"/>
+	<nick type="SqlDouble"   name="dbR8"/>
+	<nick type="SqlDecimal"  name="dbD"/>
+	<nick type="SqlMoney"    name="dbM"/>
+
+	<nick type="SqlBoolean"  name="dbB"/>
+	<nick type="SqlDateTime" name="dbDT"/>
+	<nick type="SqlGuid"     name="dbG"/>
+
+	<nick type="SqlBinary"   name="dbBin"/>
+	<nick type="SqlBytes"    name="dbAU8"/>
+	<nick type="SqlChars"    name="dbAC"/>
+	<nick type="SqlXml"      name="dbXml"/>
+
+	<group name="Scalar Types">
+		<type name="SByte"   />
+		<type name="Int16"   />
+		<type name="Int32"   />
+		<type name="Int64"   />
+		<br/>
+		<type name="Byte"    />
+		<type name="UInt16"  />
+		<type name="UInt32"  />
+		<type name="UInt64"  />
+		<br/>
+		<type name="Boolean" />
+		<type name="Char"    />
+		<type name="Single"  />
+		<type name="Double"  />
+		<type name="Decimal" />
+		<br/>
+	<!--<type name="Guid"    />
+		<type name="DateTime"/>-->
+	</group>
+
+	<group name="Nullable Types" nullable="true">
+		<type name="SByte"   />
+		<type name="Int16"   />
+		<type name="Int32"   />
+		<type name="Int64"   />
+		<br/>
+		<type name="Byte"    />
+		<type name="UInt16"  />
+		<type name="UInt32"  />
+		<type name="UInt64"  />
+		<br/>
+		<type name="Boolean" />
+		<type name="Char"    />
+		<type name="Single"  />
+		<type name="Double"  />
+		<type name="Decimal" />
+		<br/>
+		<!--<type name="Guid"    />
+		<type name="DateTime"/>-->
+	</group>
+
+	<group name="SqlTypes">
+		<type name="SqlString"  />
+		<br/>
+		<type name="SqlByte"    />
+		<type name="SqlInt16"   />
+		<type name="SqlInt32"   />
+		<type name="SqlInt64"   />
+		<br/>
+		<type name="SqlSingle"  />
+		<type name="SqlDouble"  />
+		<type name="SqlDecimal" />
+		<type name="SqlMoney"   />
+		<br/>
+		<type name="SqlBoolean" />
+	<type name="SqlGuid"    />
+		<type name="SqlDateTime"/>
+	</group>
+
+</code>