Skip to content

Commit a2fc215

Browse files
committed
Fixed #133
1 parent 4a37adc commit a2fc215

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<VersionBase>5.9.0</VersionBase>
4+
<VersionBase>5.9.1</VersionBase>
55
<PackageReleaseNotes>This package is compatible with .NET Standard 1.0 and 2.0, .NET Core 1.0 and 2.0, .NET 4.0, 4.5, 4.6, 4.7</PackageReleaseNotes>
66
</PropertyGroup>
77

src/Builder/Context/BuilderContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public void Clear(Type type, string name, Type policyInterface)
115115
public SynchronizedLifetimeManager RequiresRecovery;
116116

117117
public bool BuildComplete;
118+
119+
public Type DeclaringType;
118120
#if !NET40
119121
public IntPtr Parent;
120122
#endif
@@ -140,6 +142,7 @@ public object Resolve(Type type, string name, InternalRegistration registration)
140142
ExecutePlan = ExecutePlan,
141143
List = List,
142144
Overrides = Overrides,
145+
DeclaringType = Type,
143146
#if !NET40
144147
Parent = new IntPtr(Unsafe.AsPointer(ref thisContext))
145148
#endif

src/Processors/Parameters/ParametersDiagnostic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected virtual IEnumerable<Expression> CreateDiagnosticParameterExpressions(P
2525

2626
#if NET40
2727
Expression defaultValueExpr = null;
28-
if (true)
28+
if (parameter.DefaultValue is DBNull)
2929
#else
3030
var defaultValueExpr = parameter.HasDefaultValue
3131
? Expression.Constant(parameter.DefaultValue, parameter.ParameterType)

0 commit comments

Comments
 (0)