I see alot of this in the documentation but no reference to...

Posts   
 
    
KastroNYC
User
Posts: 96
Joined: 23-Jan-2006
# Posted on: 01-May-2006 06:17:59   

where it actually means to go to accomplish this:

"The PredicateFactory class and the SortClauseFactory class are no longer generated by default. [b]If you need them, you have to enable them in the preset you're using and save that preset under a different name so you can re-use it later[/b]."

Where is "the preset" and how do I "enable them".

Also if predicatefactory is not used how do I filter using self-servicing? an example would be nice. Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 01-May-2006 08:29:34   

In tab 3 on the code generation configuration window you'll select your 'preset' of the tasks and task settings you want to execute. You'll see that predicatefactory and sortclausefactory are dimmed out. Select them and check 'enabled'. The preset is then changed, you'll be able to save it under a different name.

Docs are a bit scarse in this area at the moment, they'll be added during the beta.

Filtering is done using the operator overloads, please see the regular filtering docs. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
KastroNYC
User
Posts: 96
Joined: 23-Jan-2006
# Posted on: 01-May-2006 16:32:16   

Thanks! Got it.

bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 22-May-2006 22:33:31   

I just want to make sure I am not missing something.... What is the reason this are disabled by default, is there a new better way of sorting and filtering? I have read about entityviews for entity collections.....but what about TypedViews.

Is there a new better way to sort a typed view?

Bert

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 23-May-2006 09:27:51   

bertcord wrote:

I just want to make sure I am not missing something.... What is the reason this are disabled by default, is there a new better way of sorting and filtering? I have read about entityviews for entity collections.....but what about TypedViews.

I think you're confusing some things wink .

The filtering building blocks are the predicate classes, like FieldCompareValuePredicate. To create instances of these, the PredicateFactory class was generated to make it simpler to create predicates. However in large projects, this class became really big and another way to write predicates was found: operator overloading. So since 1.0.2005.1, you can create predicate instances (not all of them, but the majority) through operator overloading as well, instead of the predicate factory. This means that the predicate factory is not needed anymore. To keep the amount of generated code down, the predicate factory (and also the sortclause factory) are now not enabled by default, because if you don't use it, why generate it? simple_smile

Is there a new better way to sort a typed view? Bert

It's a datatable under the hood, thus you can create a dataview from it and sort it like any other dataview. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 24-May-2006 01:17:22   

Otis wrote:

I think you're confusing some things wink .

yep...

Otis wrote:

So since 1.0.2005.1, you can create predicate instances (not all of them, but the majority) through operator overloading as well, instead of the predicate factory.

hum...cool this is what I was looking for....never heard of operator overlaoding but hey I am only a database guy.

Thanks for the help Bert

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 24-May-2006 09:57:17   

If I'm not mistaken you develop in VB.NET, right? VB.NET got operator overloading in .NET 2.0, it was already present in C# 1.x, so that's perhaps why you never heard of it simple_smile

Frans Bouma | Lead developer LLBLGen Pro
bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 24-May-2006 23:21:37   

Otis wrote:

If I'm not mistaken you develop in VB.NET, right? VB.NET got operator overloading in .NET 2.0, it was already present in C# 1.x, so that's perhaps why you never heard of it simple_smile

yep VB.NET most of the time. Everything is looking awesome!! I haven’t used the product for some time as I haven’t been developing much stuff the last year. Plus I am in grad school with my free time.....

but I did take the summer off from classes....maybe I will try and resurrect my GUI templates!

I really like the new way that template bindings work, much more flexible and will make porting my templates form codesmith much easier. Then again maybe they don’t have much value with all of this ObjectDataSource stuff…need to figure out how that stuff works first.

looking good and as always very impressed with the level of support you give your customers!

Bert

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 25-May-2006 09:52:28   

Thanks Bert! smile .

Btw, gradschool for M.Sc in CS ?

Frans Bouma | Lead developer LLBLGen Pro
bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 25-May-2006 18:12:54   

Otis wrote:

Thanks Bert! smile .

Btw, gradschool for M.Sc in CS ?

actually M.Sc in Management Information Systems ... http://www.msist.gwu.edu/

.figure I needed to get something better than a degree in criminal justice on my resume.

The funny thing is they are makign me take a database class as a prerequiste. I was like it doens matter that I mange 150 DB Servers and have all teh MS SQL certs?

o well ..maybe I wil take an Oracle class

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 26-May-2006 12:44:59   

bertcord wrote:

Otis wrote:

Thanks Bert! smile .

Btw, gradschool for M.Sc in CS ?

actually M.Sc in Management Information Systems ... http://www.msist.gwu.edu/

.figure I needed to get something better than a degree in criminal justice on my resume.

heh simple_smile Impressive! simple_smile .

The funny thing is they are makign me take a database class as a prerequiste. I was like it doens matter that I mange 150 DB Servers and have all teh MS SQL certs?

o well ..maybe I wil take an Oracle class

haha simple_smile Yeah, one reason why I sticked with my B.sc. and not went for a M.sc. gradschool study here is precisely the set of classes you have to take about subjects which won't be interesting at all, because you already know from the work in the field they don't interest you one bit.

Good luck with the course simple_smile

Frans Bouma | Lead developer LLBLGen Pro