Create Fluent Model Library from database does not get index definitions

2 posts, 1 answers
  1. Greger
    Greger avatar
    3 posts
    Member since:
    Nov 2010

    Posted 28 Feb 2013 Link to this post

    Hello

    I'm trying to start a new Fluent Model project from an existing sql server 2008 database with a Fluent Model Library.
    However it seems that all information about unique indexes are missing in FluentModelMetadataSource class/file.
    Is this an as design known behavioral not to import it or i'm i missing something?

    In the documentation you can use the Telerik.OpenAccess.Metadata.Fluent.Advanced namespace for creating index
    e.g 
    productConfiguration.
       HasIndex().
       IsUnique().
       IsClustered().
       WithName("IX_Products_Price_ProductName").
       WithColumn(
    "Price").
       Ascending().
       WithColumn(
    "Name").
       Descending();



    //best regards
    Greg
  2. Answer
    Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 Mar 2013 Link to this post

    Hello Greg,

    I am afraid that this is indeed missing functionality of our code generation for fluent mapping. No extension methods from the Telerik.OpenAccess.Metadata.Fluent.Advanced namespace are generated at the moment.

    We will improve this in the future but unfortunately until then the only solution is to add the missing code manually. Please excuse us for the inconvenience caused.

    All the best,
    Alexander
    the Telerik team
    OpenAccess ORM Q1 2013 is out featuring Multi-Diagrams, Persistent Data Stream Support and much more. Sign up for a free webinar to see all the new stuff in action.
  3. DevCraft banner
Back to Top