Find a post...

DNN-Connect Blogs

Going MVC - getting SQL Data into Razor for DNN using SQL, PetaPoco, 2sxc

Razor is the future for most output-oriented .net stuff. This also applies to WebForms-based CMS like DNN. But fortunately, they got it right and added Razor-Support about 2 years ago. So here goes: all the ways you could use to access SQL-data directly from Razor without pre-compiling something.
So no Entity-Framework or similar. The five options we'll review are: PetaPoco, SQLReader, DataTable, 2sxc-DataPipelines

Hosting liberally provided by

Geoff Barlow 519 4
Philipp Becker 5926 7
DNN-Connect 431 6
Peter Donker 4855 27
Christopher Hammond 660 2
Olivier Jooris 408 1
Daniel Mettler 11853 88
Clint Patterson 1 1
Jos Richters 65 1
James Rosewell 290 2
Will Strohl 1527 27
Ernst Peter Tamminga 421 4
Barry Waluszko 2483 2
Declan Ward 305 1
Gifford Watkins 721 9
Torsten Weggen 2332 3