This is a migrated thread and some comments may be shown as answers.

Create Fluent Model Library from database does not get index definitions

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greger
Top achievements
Rank 1
Greger asked on 28 Feb 2013, 09:31 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 04 Mar 2013, 01:42 PM
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.
Tags
General Discussions
Asked by
Greger
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or