Code Monkey home page Code Monkey logo

fluentquery's People

Contributors

codepartners avatar malcolmgroves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fluentquery's Issues

XE4: [dcc32 Fatal Error] F2084 Internal Error: AV07E6CBDB-R382843E0-0

Hi,

I'm using XE4, I get the error as stated in the topic, when trying to compile the FluentQueryTests.dpr project.

Ever worse - if the FluentQuery folder is in the 'Library Path', the error happens each time I compile any Delphi project.

Is it a compiler error of XE4? Thanks.

AsTObjectList for compatible type?

I want to select from a list of Children of an FMX object all those that support a specific interface, but trying something like the following won't work since there's a plain AsTObjectList that returns a list of TObject, but not one that could return the type you tell it to. Internally the AsTList would use "as OutT" and return TList

Is there some other way to pull this out with a clean syntax?

type TStoryItemCollection = TList;

function TStoryItem.GetStoryItems: TStoryItemCollection;
var IsStoryItem: TPredicate;
begin
IsStoryItem := function(obj: TFmxObject): Boolean
begin
Result := Supports(obj, IStoryItem);
end;

result := ObjectQuery.Select.From(Children).Where(IsStoryItem).AsTList(false);
end;

Make it easy for users to extend FluentQuery for their own Domain Objects

Adding Enumerators for new types is not that hard currently, but it's a little verbose. This is mostly not really a problem, as most people probably won't need to do it. However, the one place they may want to (and where I definitely want to) is for their own business/domain objects. It would be good if the amount of code needed to create a CustomerQueryEnumerator, for example, was significantly lower than it is today. Something like 1) descend from CustomObjectQueryEnuemerator, IBound/IUnboundCustomObjectQueryEnumerator 2) add implementation of query operations, 3) add signatures to interfaces.

Add Equals operation

For strings this would delegate to a case sensitive Matches, probably the same for Char. For others, it makes sense to have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.