Map(x => x.FirstName).Index("foo");
Map(x => x.LastName).Index("foo");

On 25 Sep., 05:11, Joseph Lam <[email protected]> wrote:
> Let's say I have:
>
> class Person
> {
>         int Id;
>         PersonName Name;
>
> }
>
> class PersonName
> {
>         string FirstName;
>         string LastName;
>
> }
>
> The class PersonName is a component and I want to have a database
> index created on the Person table's PersonNameFirstName and
> PersonNameLastName fields. How can I do that?

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to