Currently have the following mapping file:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="NHibernateHelpers"
assembly="App_Code.NHibernateHelpers">
<class name="NHibernateHelpers.Fixture, App_Code" table="Fixture_Lists">
<id name="Id" column="UniqRefNo">
<generator class="guid" />
</id>
<property name="Date" column="FixDate"/>
<property name="HomeTeamId" column="HomeId"/>
<property name="HomeTeamName" column="Home_Team"/>
<property name="AwayTeamId" column="AwayId"/>
<property name="AwayTeamName" column="Away_Team"/>
<property name="Kickoff" column="Kickoff"/>
<bag name="Goals">
<key column="FixID" />
<one-to-many class="NHibernateHelpers.Goal, App_Code"/>
</bag>
<bag name="Bookings">
<key column="FixID" />
<one-to-many class="NHibernateHelpers.Booking, App_Code"/>
</bag>
<many-to-one name="HomeTeam" class="NHibernateHelpers.Team" column="HomeId" />
<many-to-one name="AwayTeam" class="NHibernateHelpers.Team" column="AwayId" />
<many-to-one name="Division" class="NHibernateHelpers.Division" column="Div_Comp" />
<property name="HomeFullTimeScoreCode" column="Home_FT_Score"/>
<property name="AwayFullTimeScoreCode" column="Away_FT_Score"/>
</class>
</hibernate-mapping>
Which maps nicely to the legacy database I have inherited, but I would like to add a property named "MatchTime" that contains the output of the stored procedure:
EXEC GetMatchTime @FixtureId = :Id
where :Id is the Id of the current Fixture object.
Is this possible in the mapping file?