c# - Using Solrnet and Assigning Attributes with Entity Framework Generated POCOs -
i using solr search server asp.net 4.5 application. i've installed solr on windows 8 laptop computer. according solrnet this documentation, need use specific attributes on pocos.
the thing using entity framework , classes auto generated. there option assign type of solr attributed , make sure presistant , won't erased if suggested solution based on editing template (.tt) file.
i want use entity framework, if not possible, copy pocos , create classes myself attributes. prefer searching solution allow me use solrnet entity framework. thanks.
i suggest create separate classes map solr index schema, typically structure of ef classes , index schema not identical. way have clean separation between persistence classes (those auto-generated ef) , index mapping classes , can control how mapping between 2 occurs. recommend use of automapper assist translating objects ef solr , again needed.
Comments
Post a Comment