Skip to content

Commit 2cb4341

Browse files
Clean-up of TypeFactory
* Removing undue global thread sync and concurrency checks, the concurrent dictionary handles already that. * Removing useless singleton pattern, likely a remnant of Java port.
1 parent c4eb6f4 commit 2cb4341

File tree

2 files changed

+84
-240
lines changed

2 files changed

+84
-240
lines changed

src/NHibernate/SqlTypes/SqlTypeFactory.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Concurrent;
33
using System.Data;
4-
using System.Runtime.CompilerServices;
54

65
namespace NHibernate.SqlTypes
76
{
@@ -99,7 +98,6 @@ public static TimeSqlType GetTime(byte fractionalSecondsPrecision)
9998
return GetTypeWithLenOrScale(fractionalSecondsPrecision, l => new TimeSqlType(l));
10099
}
101100

102-
[MethodImpl(MethodImplOptions.Synchronized)]
103101
public static SqlType GetSqlType(DbType dbType, byte precision, byte scale)
104102
{
105103
return GetTypeWithPrecision(dbType, precision, scale);

0 commit comments

Comments
 (0)