Razor
DbNetEditCore customerEdit = new DbNetEditCore("northwind", "customers", "customerEdit") { };
DbNetComboCore customerCombo = new DbNetComboCore("northwind", "customers", "companyname", null, "customer")
{
ForeignKeyColumn = "city",
Size = 5,
AutoRowSelect = true
};
customerCombo.Bind(EventType.OnOptionSelected, "showSelectedCustomer");
DbNetComboCore cityCombo = new DbNetComboCore("northwind", "customers", "city", null, "city")
{
ForeignKeyColumn = "country",
Size = 5,
Distinct = true,
AutoRowSelect = true
};
DbNetComboCore countryCombo = new DbNetComboCore("northwind", "customers", "country", null, "country")
{
Size = 10,
Distinct = true,
AutoRowSelect = true
};
customerCombo.AddLinkedControl(customerEdit);
cityCombo.AddLinkedControl(customerCombo);
countryCombo.AddLinkedControl(cityCombo);
@countryCombo.Render()