So that's what they call it, FluentInterface. I've noticed this when i first encountered query construction in NHibernate in constructing a query using a criteria:
IList cats = sess.CreateCriteria(typeof(Cat))
.CreateAlias("Kittens", "kt")
.CreateAlias("Mate", "mt")
.Add( Expression.EqProperty("kt.Name", "mt.Name") )
.List();
The said constructs are also noticeable among mock testing frameworks.
Posted
01-09-2007 9:46 AM
by
jokiz