Esempio n. 1
0
        public void Add <TTable, TModel>(TableConfiguration <TModel> table)
            where TTable : MvcTable <TModel>
        {
            // Keep only one node per each MvcTableType
            var oldTableConfig = _tableConfigs.FirstOrDefault(x => x.MvcTableType == typeof(TTable));

            if (oldTableConfig != null)
            {
                _tableConfigs.Remove(oldTableConfig);
            }

            _tableConfigs.Add(new MvcTableStoreNode(table, typeof(TTable)));
        }
 public void Add <TTable, TModel>(TableConfiguration <TModel> table)
     where TTable : MvcTable <TModel>
 {
     _tableConfigs.Add(new MvcTableStoreNode(table, typeof(TTable)));
 }