In Rabbit Framework, when coding the Model part of MVC, I decided to implement the Fluent Interface.

The concept is not tied to Rabbit Framework. It applies to all other forms of development, including but not limited to Web Forms, ASP.NET MVC, Web Services and etc.

The idea begins with to chain a serial of operations around some data. Just like what jQuery does. Eventually it leads to monadic method chain.

var page = PageModel.Load().Op1().Op2().Op3()…..Value;

To be continued ...

Last edited Mar 4, 2011 at 7:43 PM by yysun, version 1


No comments yet.