Answer the question
In order to leave comments, you need to log in
MySQL NHibernate how to use composite indicator?
I have such a table
. I try to map it like this .., you can’t change it (table).
using FluentNHibernate.Mapping;
using Sourcedb.Entities;
namespace Sourcedb.Mapping
{
public class OptionsMap : ClassMap<Options>
{
public OptionsMap()
{
Table("s_options");
CompositeId()
.KeyProperty(x => x.Productid, "product_id")
.KeyProperty(x => x.Fiature, "feature_id")
.KeyProperty(x => x.Val, "value");
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question