GlassMapper - 找不到布尔方法 HasValue
GlassMapper - Boolean method not found HasValue
刚刚在新的 Sitecore 8.1 解决方案上安装了 glass mapper,当我加载网站时,我不断收到以下错误 - 屏幕截图中有更多详细信息。
有什么想法吗?
未找到方法:'Boolean Glass.Mapper.ExtensionMethods.HasValue(System.String)'.
我猜你从旧版本的 GlassMapper
引用了错误的 Glass.Mapper.dll
你看看你有没有这个方法
/// <summary>
/// Indicates whether the specified string has a value, i.e. Not null or empty
///
/// </summary>
public static bool HasValue(this string target)
{
return !ExtensionMethods.IsNullOrEmpty(target);
}
里面classGlass.Mapper.ExtensionMethods
我查看了 GlassMapper 版本 4.0.5
刚刚在新的 Sitecore 8.1 解决方案上安装了 glass mapper,当我加载网站时,我不断收到以下错误 - 屏幕截图中有更多详细信息。
有什么想法吗?
未找到方法:'Boolean Glass.Mapper.ExtensionMethods.HasValue(System.String)'.
我猜你从旧版本的 GlassMapper
引用了错误的 Glass.Mapper.dll你看看你有没有这个方法
/// <summary>
/// Indicates whether the specified string has a value, i.e. Not null or empty
///
/// </summary>
public static bool HasValue(this string target)
{
return !ExtensionMethods.IsNullOrEmpty(target);
}
里面classGlass.Mapper.ExtensionMethods
我查看了 GlassMapper 版本 4.0.5