Searching by Index

Posts   
 
    
TonyLacey
User
Posts: 17
Joined: 11-Mar-2008
# Posted on: 11-Mar-2008 15:51:05   

Sorry if this has already been covered.

I'm coming from NetTiers and I'm used to having a "fetch" for each of my different indexes.

For example,

Table Customer cID, (primary Key) cName, cLogin, (Unique Index) cPassword

In Nettiers it would generate a constructor for Customer with cLogin as a parameter.

The only way I have found to do this in LLBLGen is add a unique constraint... then use FetchBy...

I've just started using LLBLGen and so far I really like it. Thank you very much!

Tony

TonyLacey
User
Posts: 17
Joined: 11-Mar-2008
# Posted on: 11-Mar-2008 16:28:18   

I think I figured it out. I had to change the index type in MSSQL from Index to Unique Key.

Thanks, Tony