Column order in multi-column index

vgr's Avatar

vgr

04 Nov, 2010 04:06 PM via web

Is there a way to configure exact column order in a multi-column index, when creating a mapping using Fluent NH?

  1. Support Staff 2 Posted by James Gregory on 05 Nov, 2010 01:23 PM

    James Gregory's Avatar

    What does your mapping look like?

  2. 3 Posted by vgr on 07 Nov, 2010 02:48 PM

    vgr's Avatar

    For example:

    mapping.References(x => x.SomeReference).SetAttribute("index", "IX_index");
    mapping.Map(x => x.SomeField).SetAttribute("index", "IX_index");

    Produces the following Schema:

    create index IX_index on ApplicantProgramDatas (SomeField, SomeReferenceId)

    But I want to get:

    create index IX_index on ApplicantProgramDatas (SomeReferenceId, SomeField)
  3. 4 Posted by Bas on 11 Jan, 2011 12:12 PM

    Bas's Avatar

    I second this. I need this as well, but found no way to specify this. Is it possible? If not, could this be implemented? Thanks

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What comes next? 'Monday Tuesday Wednesday ?????'