Skip to content

Commit

Permalink
Refering to NH-3370, the serializable check for custom types is not n…
Browse files Browse the repository at this point in the history
…eeded. In some cases, it could fill the log files with warnings (e.g. When you have a custom type, that returns the type IEnumerable<T>).
  • Loading branch information
bbv-michaelestermann authored and hazzik committed Feb 12, 2017
1 parent 5c44833 commit ec8687c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/NHibernate/Type/CustomType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ public CustomType(System.Type userTypeClass, IDictionary<string, string> paramet
}
TypeFactory.InjectParameters(userType, parameters);
sqlTypes = userType.SqlTypes;
if (!userType.ReturnedType.IsSerializable)
{
LoggerProvider.LoggerFor(typeof(CustomType)).WarnFormat("the custom type '{0}' handled by '{1}' is not Serializable: ", userType.ReturnedType, userTypeClass);
}
}

/// <summary>
Expand Down

0 comments on commit ec8687c

Please sign in to comment.