comparison Source/Data/DataProvider/SqlDataProviderBase.cs @ 9:1e85f66cf767 default tip

update bltoolkit
author nickolay
date Thu, 05 Apr 2018 20:53:26 +0300
parents f990fcb411a9
children
comparison
equal deleted inserted replaced
8:a34cfdde80d6 9:1e85f66cf767
72 // "Database name is not allowed with a table-valued parameter" 72 // "Database name is not allowed with a table-valued parameter"
73 // but this is exactly the way how they are discovered. 73 // but this is exactly the way how they are discovered.
74 // 74 //
75 if (p.SqlDbType == SqlDbType.Structured) 75 if (p.SqlDbType == SqlDbType.Structured)
76 { 76 {
77 var firstDot = p.TypeName.IndexOf('.'); 77 var firstDot = p.UdtTypeName.IndexOf('.');
78 if (firstDot >= 0) 78 if (firstDot >= 0)
79 p.TypeName = p.TypeName.Substring(firstDot + 1); 79 p.UdtTypeName = p.UdtTypeName.Substring(firstDot + 1);
80 } 80 }
81 } 81 }
82 #endif 82 #endif
83 83
84 return true; 84 return true;
121 { 121 {
122 #if !MONO 122 #if !MONO
123 if (!(parameter is SqlParameter)) 123 if (!(parameter is SqlParameter))
124 throw new ArgumentException("SqlParameter expected.", "parameter"); 124 throw new ArgumentException("SqlParameter expected.", "parameter");
125 125
126 ((SqlParameter)parameter).TypeName = typeName; 126 ((SqlParameter)parameter).UdtTypeName = typeName;
127 #else 127 #else
128 throw new NotSupportedException(); 128 throw new NotSupportedException();
129 #endif 129 #endif
130 } 130 }
131 131