Skip to content

Commit

Permalink
refs: #15
Browse files Browse the repository at this point in the history
  • Loading branch information
MiYABiS committed Aug 11, 2017
1 parent 8a70bd1 commit 835b61e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MocaCore/Db/EntityBuilder.vb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ Namespace Db
key = DirectCast(keys(colName), String)
val = reader.Item(ii)

If String.IsNullOrEmpty(key) Then
Throw New MissingMemberException(typ.FullName, colName)
End If

prop = ClassUtil.GetProperties(typ, key)
If Not prop.PropertyType.Equals(GetType(Object)) Then
val = DbUtil.CNull(val)
Expand Down

0 comments on commit 835b61e

Please sign in to comment.