How to create index and FindByField

Posts   
 
    
gregkuha60
User
Posts: 47
Joined: 23-Jan-2012
# Posted on: 04-Apr-2012 11:05:42   

Hello

I can't see where/how i can define a index for a field in the designer. I would like to create a non unique index. Is it possible at all? If it's possible will it also create a method for the entity with something like FindByField?

Thanks from Greg

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 04-Apr-2012 11:27:25   

This is a pure database setting, and have nothing to do with the model. You should set it in the database.

gregkuha60
User
Posts: 47
Joined: 23-Jan-2012
# Posted on: 04-Apr-2012 16:01:39   

Ok.

I used to have a access to orm tool built by my employer. It had the possibilities to make a filed searchable. it then made code for FindByField and also createad the database script for a index.

Maybe Something for the wishlist? simple_smile Thanks.