A grid can be created with a single of code. Simply supply the connection alias and table/view name in the constructor for the control.

Razor
        
@(new DbNetGridCore("northwind", "customers").Render())