We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7224954 commit f1b0f79Copy full SHA for f1b0f79
src/NHibernate/Type/Int32Type.cs
@@ -27,7 +27,7 @@ public override string Name
27
get { return "Int32"; }
28
}
29
30
- private static readonly Int32 ZERO = 0;
+ private static readonly object ZeroObject = 0;
31
32
public override object Get(DbDataReader rs, int index, ISessionImplementor session)
33
{
@@ -128,10 +128,7 @@ public override System.Type PrimitiveClass
128
get { return typeof(Int32); }
129
130
131
- public override object DefaultValue
132
- {
133
- get { return ZERO; }
134
- }
+ public override object DefaultValue => ZeroObject;
135
136
public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
137
0 commit comments