record count

Posts   
 
    
DAVE30B
User
Posts: 8
Joined: 12-Oct-2007
# Posted on: 16-Oct-2007 11:37:48   

is their a way of getting a record coutn just i need to produce a count for the amount of faq's in a certian category

Faq ( Record Count)

Also is their a way with asp.net repeater and llbgen to have a no record template

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Oct-2007 12:11:25   

is their a way of getting a record coutn just i need to produce a count for the amount of faq's in a certian category

Faq ( Record Count)

Use the GetDBCount() method. Please look it up in the LLBLGen Pro Reference manual.

(Edit Start) Example: to perform SELECT Count(*) FROM Customers

EntityCollection<CustomerEntity> customers = new EntityCollection<CustomerEntity>(); int recordsCount = adapter.GetDbCount(customers, null);

You can use the second parameter to add filters to the query. (Edit End)

Also is their a way with asp.net repeater and llbgen to have a no record template

The ASP.NET Repeater controal has no EmptyTemplate. LLBLGen Pro has nothing to do about it. How do you want LLBLGen Pro to help you here?