Minimal Configuration for Rhino Common Repository

time to read 4 min | 767 words

This is the bare minimum that you need to do in order to use the repositories:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

      <components>

            <component id="default.repository"

                           service ="Rhino.Commons.IRepository`1, Rhino.Commons"

                           type="Rhino.Commons.NHRepository`1, Rhino.Commons"/>

            </components>

</configuration>

Just put it in windor.config in the current directory add the appropriate hibernate.cfg.xml and call initialize.