Welcome to Habanero Land!
Register
|
Login
Overview
Customer Feedback
Habanero Team
Habanero Features
Guided Tour
Object Relational Mapping (ORM)
Firestarter
One Application for Desktop & Web
Agile Development & Prototyping
Generating User Interfaces
Compatibility
Licensing & Support
Tutorials
Beginner
Intermediate
Advanced
Demo Videos
Beginners Demo Video
Download
Habanero Download
Tutorials Download
Habanero Change log
Forum
Blogs
Support
Community
Graph Stats
Top Visits & Downloads
You are here:
Blogs
So, why do you need to
register
to download Habanero and access the additional materials?
The
success
of any open source project is based on the
community
built around it. So go ahead,
register
/
login
and
get involved
!
Blog Roll
View All Recent Entries
Developing in the Domain (6)
Mark's Musings (1)
Peter Wiles' Blog (4)
TDD with Domain Objects (4)
Using Habanero (1)
Categories
.NET (1)
ASP.Net (0)
C# (3)
Chillisoft (0)
Databases (0)
Firestarter (1)
Habanero (11)
Hardware (0)
IT Solutions (0)
Microsoft (0)
Other (0)
Resharper (0)
Software (0)
Software Development (1)
Unit Testing (6)
Web (0)
Search Blog
All Blogs
Developing in the Domain
Mark's Musings
Peter Wiles' Blog
TDD with Domain Objects
Using Habanero
Keywords
Phrase
Habanero Cloud
AutoIncrementing
AutoMockingUnityContainer
AutoResolvingUnityContainer
Code Snippets
collections
CSharp
Domain Driven Design
Domain Model
domain-modelling
DotNet
Features
Generation
Habanero
Habanero Core
Habanero.Core
Habanero.Faces
Object Identity
Object Relational Mapping.
Persistance
Resharper Tesmplates
RhinoMocks
SoftwareDevelopment
TDD
Test Driven Development
tutorial
User Interface ComboBox
v2.3.2
Habanero Archive
Archive
<
September 2010
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
Monthly
May, 2010 (8)
April, 2010 (2)
March, 2010 (2)
February, 2010 (2)
January, 2010 (2)
Recent Blog Posts
Habanero 2.3.2: new feature - "in" operator
By Peter Wiles on
Wednesday, March 31, 2010 5:34 PM
So the
new Habanero version
(2.3.2) is out, and one of the new features is an improvement in loading collections in the form of an IN operator (and its negative, not in). This works similarly to how it's used in SQL - in fact it gets translated into a SQL in clause if your Habanero app is running against a database. Here's an example of using it in loading a set of Person objects:
BusinessObjectCollection persons = Broker.GetBusinessObjectCollection( "Surname in ('Wiles', 'Powell', 'Naidu')"); It's a really intuitive syntax because of its close relation to SQL's in statement. Also available is the 'not in' operator which does exactly what it says - searches for items not in the given list.
If you want to load using the more type-safe Criteria objects, or you are using code to build up your criteria clause, you can do it like this:
object[] values = new object[] {"Wiles", "Powell",...
Read More »
Comments (5)
Peter Wiles' Blog
This website is best viewed in Internet Explorer 7 & 8; Firefox; Opera; & Safari.
Overview
|
Tutorials
|
Download
|
Forum
|
Blogs
|
Support
|
Community
Privacy Statement
|
Terms Of Use
©Copyright 2007-2010 Chillisoft Solutions Services (Pty) Ltd