protected override void OnLoad(EventArgs e) { EnsureChildControls(); if (!Page.IsPostBack) { DataTable dt = SqlHelper.ExecuteProcedure("sp_tables", new SqlParameter("@table_type", "\"'TABLE'\"")); TreeNode node = new TreeNode("جداول", "Entity"); uxAccesses.ActionsTree.Nodes.Add(node); foreach (DataRow row in dt.Rows) { string tn = row["TABLE_NAME"].ToString(); if (Array.IndexOf(aspnetTables, tn) >= 0) { continue; } TreeNode n = new TreeNode(SchemaUtility.GetSqlTableDescription(tn, row["TABLE_OWNER"].ToString()), tn); n.ChildNodes.Add(new TreeNode("نمايش", "View")); n.ChildNodes.Add(new TreeNode("ويرايش", "Edit")); n.ChildNodes.Add(new TreeNode("حذف", "Delete")); node.ChildNodes.Add(n); } } base.OnLoad(e); }