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でオブジェクトをフックすることを想定しています。
ありがとうございます!