changeset 9:1e85f66cf767 default tip

update bltoolkit
author nickolay
date Thu, 05 Apr 2018 20:53:26 +0300
parents a34cfdde80d6
children
files Source/Data/DataProvider/SqlDataProviderBase.cs
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Source/Data/DataProvider/SqlDataProviderBase.cs	Wed Nov 29 12:43:52 2017 +0300
+++ b/Source/Data/DataProvider/SqlDataProviderBase.cs	Thu Apr 05 20:53:26 2018 +0300
@@ -74,9 +74,9 @@
 				//
 				if (p.SqlDbType == SqlDbType.Structured)
 				{
-					var firstDot = p.TypeName.IndexOf('.');
+					var firstDot = p.UdtTypeName.IndexOf('.');
 					if (firstDot >= 0)
-						p.TypeName = p.TypeName.Substring(firstDot + 1);
+						p.UdtTypeName = p.UdtTypeName.Substring(firstDot + 1);
 				}
 			}
 #endif
@@ -123,7 +123,7 @@
 			if (!(parameter is SqlParameter))
 				throw new ArgumentException("SqlParameter expected.", "parameter");
 
-			((SqlParameter)parameter).TypeName = typeName;
+			((SqlParameter)parameter).UdtTypeName = typeName;
 #else
 			throw new NotSupportedException();
 #endif