Razor
DbNetEditCore productsForm = new DbNetEditCore("northwind", "products");
productsForm.Column("discontinued").DataType(typeof(Boolean));
productsForm.Bind(EventType.OnRecordSelected, "disableFormForInactiveProducts");
productsForm.Column("supplierid").Lookup(new Lookup("suppliers", "supplierid", "companyname")).Label("Supplier");
productsForm.Column("categoryid").Lookup(new Lookup("categories", "categoryid", "categoryname")).Label("Category");
productsForm.Column(new string[] { "ProductName", "Discontinued" }).Browse();
@productsForm.Render()