0
我正在升級我在3.3.2.4000至4.0.4.4000上創建的大約4年的解決方案。當我嘗試把它,我得到以下錯誤:NHibernate類型沒有實現
{"Method 'Set' in type 'iSeguro.Data.Mappings.EmpresaBridge' from assembly 'iSeguro.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.":"iSeguro.Data.Mappings.EmpresaBridge"}
類型定義如下:
public class EmpresaBridge : IFieldBridge
{
public void Set(string name, object value, Document document, Field.Store store, Field.Index index, float? boost)
{
string data = string.Empty;
if (value != null) data = ((Empresa)value).Nombre;
document.Add(new Field(name, data, store, index));
}
}
映射類型:
public partial class ValoracionSearchMap : DocumentMap<Valoracion>
{
public ValoracionSearchMap()
{
Name("Valoracion");
Id(c => c.Id);
Map(c => c.Asunto).Store().No().Index().Tokenized().Boost(4);
Map(c => c.Descripcion).Store().No().Index().Tokenized();
Map(c => c.Publicar).Store().Yes().Index().Tokenized();
Map(c => c.Creador).Store().Yes().Index().Tokenized();
FieldBridge(c => c.Creador).Custom<UsuarioBridge>();
Map(c => c.Empresa).Store().Yes().Index().Tokenized();
FieldBridge(c => c.Empresa).Custom<EmpresaBridge>();
Map(c => c.Producto).Store().Yes().Index().Tokenized();
FieldBridge(c => c.Producto).Custom<ProductoBridge>();
}
}
我已經出的遊戲一段時間,只是不知道錯誤是什麼關係。這是假設用lucene.net鉤住對象。
謝謝!