Create Query and Projection Widget by code

Topics: General, Writing modules
Apr 30, 2014 at 1:23 AM
Edited Apr 30, 2014 at 3:25 PM
Hi everybody
I have been started learning orchard for one month now and i think i'm still newbie...
I want to create a new module in code.
how can i build queries and related projection widgets for my module completely by code?
I googled for days and i can't found any sample and tutorial that was completely created by code.
I would appreciate it if anyone could help me.