DynamicData\DynamicDataExtensions.cs (17)
20public static void SetMetaTable(this INamingContainer control, MetaTable table) {
24public static void SetMetaTable(this INamingContainer control, MetaTable table, IDictionary<string, object> defaultValues) {
31public static void SetMetaTable(this INamingContainer control, MetaTable table, object defaultValues) {
46public static MetaTable GetMetaTable(this IDataSource dataSource) {
50public static bool TryGetMetaTable(this IDataSource dataSource, out MetaTable table) {
54public static MetaTable GetMetaTable(this INamingContainer control) {
58public static bool TryGetMetaTable(this INamingContainer control, out MetaTable table) {
62internal static void ApplyFieldGenerator(INamingContainer control, MetaTable table) {
92internal static MetaTable GetMetaTable(IDataSource dataSource, HttpContextBase context) {
93MetaTable table;
100internal static bool TryGetMetaTable(IDataSource dataSource, HttpContextBase context, out MetaTable table) {
117internal static MetaTable GetMetaTable(INamingContainer control, HttpContextBase context) {
118MetaTable table;
125internal static bool TryGetMetaTable(INamingContainer control, HttpContextBase context, out MetaTable table) {
134internal static void SetMetaTableInternal(INamingContainer control, MetaTable table, IDictionary<string, object> defaultValues, HttpContextBase context) {
157public static MetaTable GetTable(this IDynamicDataSource dataSource) {
219public static MetaTable FindMetaTable(this Control current) {
DynamicData\DynamicDataRouteHandler.cs (11)
53public virtual IHttpHandler CreateHandler(DynamicDataRoute route, MetaTable table, string action) {
69private string GetPageVirtualPath(DynamicDataRoute route, MetaTable table, string action) {
94private string GetPageVirtualPathNoCache(DynamicDataRoute route, MetaTable table, string action) {
120protected virtual string GetCustomPageVirtualPath(MetaTable table, string viewName) {
131protected virtual string GetScaffoldPageVirtualPath(MetaTable table, string viewName) {
175public static MetaTable GetRequestMetaTable(HttpContext httpContext) {
183internal static MetaTable GetRequestMetaTable(HttpContextBase httpContext) {
186return (MetaTable)httpContext.Items[s_metaTableKey];
193public static void SetRequestMetaTable(HttpContext httpContext, MetaTable table) {
197internal static void SetRequestMetaTable(HttpContextBase httpContext, MetaTable table) {
216MetaTable table = route.GetTableFromRouteData(requestContext.RouteData);
DynamicData\MetaModel.cs (33)
22private List<MetaTable> _tables = new List<MetaTable>();
23private ReadOnlyCollection<MetaTable> _tablesRO;
24private Dictionary<string, MetaTable> _tablesByUniqueName = new Dictionary<string, MetaTable>(StringComparer.OrdinalIgnoreCase);
25private Dictionary<ContextTypeTableNamePair, MetaTable> _tablesByContextAndName = new Dictionary<ContextTypeTableNamePair, MetaTable>();
59_tablesRO = new ReadOnlyCollection<MetaTable>(_tables);
230var tablesToInitialize = new List<MetaTable>();
234MetaTable table = CreateTable(tableProvider);
252foreach (MetaTable table in tablesToInitialize) {
256foreach (MetaTable table in tablesToInitialize) {
317protected virtual MetaTable CreateTable(TableProvider provider) {
321private void AddTable(MetaTable table) {
334private void CheckTableNameConflict(MetaTable table, string nameOverride, List<MetaTable> tablesToInitialize) {
336MetaTable nameConflictTable;
379public ReadOnlyCollection<MetaTable> Tables {
392public List<MetaTable> VisibleTables {
399private bool IsTableVisible(MetaTable table) {
409public MetaTable GetTable(Type entityType) {
410MetaTable table;
427public bool TryGetTable(Type entityType, out MetaTable table) {
449public MetaTable GetTable(string uniqueTableName) {
452MetaTable table;
469public bool TryGetTable(string uniqueTableName, out MetaTable table) {
485public MetaTable GetTable(string tableName, Type contextType) {
496MetaTable table;
628internal static void AddTable(Type entityType, MetaTable table) {
645internal static bool TryGetTable(Type type, out MetaTable table) {
646table = (MetaTable)s_tableByEntityType[type];
658MetaTable metaTable;
668MetaTable metaTable;