UserList = User.Select( AND( LIKE( User.Email, "%gmail.com" ), EQUALS( User.Active, true ) ) ) That way it would be easy to construct whatever select statement is necessary. (I haven't taking multiple tables into account yet.)I've been thinking about how to actually program this. One thing I found out was that I can't (or I haven't found a way) to send the property of an object without doing a much of extra steps. But what I can do is send the object and the name of the property. So it becomes
EQUALS( User, "Active", true )The other down side is that those functions ( ADD, LIKE, EQUALS ) need to be part of an object... Unless they are Objects themselves. I'm not too found of having the call be something like
UserList = User.Select( Selector.AND( Selector.LIKE( User, "Email", "%gmail.com" ), Selector.EQUALS( User, "Active", true ) ) ) I found it annoying to have to have the object name in front of each.If I made them objects on the other hand, I wouldn't have that problem...
No comments:
Post a Comment