Stupid Question

Posts   
 
    
BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 20-Jul-2004 21:39:16   

How do I use an EntityCollection tp just select all records?

jeffreygg
User
Posts: 805
Joined: 26-Oct-2003
# Posted on: 20-Jul-2004 22:01:46   

EntityCollection.GetMulti(nothing)

Basically, just send a NULL predicate to the GetMulti method.

Jeff...

BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 20-Jul-2004 22:13:30   

I did that, but that wasn't my problem after all. Thx!

Is there a way to print out the entities, their field names, and their column names for easy reference?

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 20-Jul-2004 22:17:03   

You could use Ndoc, it would give you a nice help file like the llblgen pro reference manual.

jeffreygg
User
Posts: 805
Joined: 26-Oct-2003
# Posted on: 20-Jul-2004 22:18:21   

I'll defer to Frans on this one, but I don't think there's an easy way...

Jeff...

BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 20-Jul-2004 22:23:51   

Using the Object Browser is fine for me but I am trying to lead a team on our first project using LLBLGen and I am desperately looking for way's to hush the wining cry .

jeffreygg
User
Posts: 805
Joined: 26-Oct-2003
# Posted on: 20-Jul-2004 22:31:54   

BSAPD wrote:

Using the Object Browser is fine for me but I am trying to lead a team on our first project using LLBLGen and I am desperately looking for way's to hush the wining cry .

Well, you could iterate through each entitytype, then iterate through each field in the .Fields collection and print out it's name. Just a thought simple_smile

Jeff...

P.S. Just tell them they'll never have to create another DAL again. If that doesn't shut 'em up, I don't know what will. wink

BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 20-Jul-2004 22:49:24   

jeffreygg wrote:

Well, you could iterate through each entitytype, then iterate through each field in the .Fields collection and print out it's name. Just a thought simple_smile

Thats not a half bad idea! Would be pretty easy too smile .

jeffreygg wrote:

P.S. Just tell them they'll never have to create another DAL again. If that doesn't shut 'em up, I don't know what will. wink

Man, I wish it was that easy!

We have a bunch of old school VB and ASP developers who don't even belive that OOP is better than Modular confused . Some of them make very good arguments too rage . But like with most things, I think after we get through this beginning stage they will see at least some value smile .

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 20-Jul-2004 23:30:31   

BSAPD wrote:

Using the Object Browser is fine for me but I am trying to lead a team on our first project using LLBLGen and I am desperately looking for way's to hush the wining cry .

To get a nice .chm file you definitely should check out ndoc.

Just generate a C# version of the code, compile it with teh option to generate xml output as well (it's a vs.net project setting), then run ndoc on the xml and assembly and you're done. simple_smile

NDoc needs with Northwind about 15 minutes to generate the .chm which is the reference manual for llblgen pro. Your team members can also use that one, as it illustrates the methods available.

Frans Bouma | Lead developer LLBLGen Pro
BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 21-Jul-2004 00:36:21   

Otis wrote:

To get a nice .chm file you definitely should check out ndoc.

Just generate a C# version of the code, compile it with teh option to generate xml output as well (it's a vs.net project setting), then run ndoc on the xml and assembly and you're done. simple_smile

NDoc needs with Northwind about 15 minutes to generate the .chm which is the reference manual for llblgen pro. Your team members can also use that one, as it illustrates the methods available.

Speaking of NDoc, I am curious, why the comments that get generated in the VB.NET template are not in the format NDoc can use? We use NDoc for all our VB.NET projects and it works fine using three apostrophes ('''<summary></summary>).

I forgot to mention there is also a VS Plug-In involved in this, VB Commenter (http://www.gotdotnet.com/community/workspaces/viewuploads.aspx?id=112b5449-f702-46e2-87fa-86bdf39a17dd).

I don't think it's well supported though, oh well.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 21-Jul-2004 09:42:24   

BSAPD wrote:

Otis wrote:

To get a nice .chm file you definitely should check out ndoc.

Just generate a C# version of the code, compile it with teh option to generate xml output as well (it's a vs.net project setting), then run ndoc on the xml and assembly and you're done. simple_smile

NDoc needs with Northwind about 15 minutes to generate the .chm which is the reference manual for llblgen pro. Your team members can also use that one, as it illustrates the methods available.

Speaking of NDoc, I am curious, why the comments that get generated in the VB.NET template are not in the format NDoc can use? We use NDoc for all our VB.NET projects and it works fine using three apostrophes ('''<summary></summary>).

I forgot to mention there is also a VS Plug-In involved in this, VB Commenter (http://www.gotdotnet.com/community/workspaces/viewuploads.aspx?id=112b5449-f702-46e2-87fa-86bdf39a17dd).

I don't think it's well supported though, oh well.

When I wrote the VB.NET templates I wasn't aware of a format for VB.NET. Whidbey also uses ''' so I'll change the comments in VB.NET in the future.

Frans Bouma | Lead developer LLBLGen Pro