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.

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