mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
DataTables.Mvc added.
Removed old model binding for DataTablesParams (Logs no uses the one from DataTables.Mvc)
This commit is contained in:
parent
2aedc48203
commit
e6712e5aa2
11 changed files with 45 additions and 92 deletions
17
packages/DataTables.Mvc.0.1.0.54/Content/App_Start/DataTablesMvc.cs.pp
vendored
Normal file
17
packages/DataTables.Mvc.0.1.0.54/Content/App_Start/DataTablesMvc.cs.pp
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
using DataTables.Mvc.Core.Helpers;
|
||||
using DataTables.Mvc.Core.Models;
|
||||
using System.Web.Mvc;
|
||||
|
||||
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.DataTablesModelBinderActivator), "Start")]
|
||||
|
||||
namespace $rootnamespace$.App_Start
|
||||
{
|
||||
public static class DataTablesModelBinderActivator
|
||||
{
|
||||
public static void Start()
|
||||
{
|
||||
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesParams)))
|
||||
ModelBinders.Binders.Add(typeof(DataTablesParams), new DataTablesModelBinder());
|
||||
}
|
||||
}
|
||||
}
|
BIN
packages/DataTables.Mvc.0.1.0.54/DataTables.Mvc.0.1.0.54.nupkg
vendored
Normal file
BIN
packages/DataTables.Mvc.0.1.0.54/DataTables.Mvc.0.1.0.54.nupkg
vendored
Normal file
Binary file not shown.
BIN
packages/DataTables.Mvc.0.1.0.54/lib/DataTables.Mvc.Core.dll
vendored
Normal file
BIN
packages/DataTables.Mvc.0.1.0.54/lib/DataTables.Mvc.Core.dll
vendored
Normal file
Binary file not shown.
5
packages/DataTables.Mvc.0.1.0.54/tools/install.ps1
vendored
Normal file
5
packages/DataTables.Mvc.0.1.0.54/tools/install.ps1
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$path = [System.IO.Path]
|
||||
$appstart = $path::Combine($path::GetDirectoryName($project.FileName), "App_Start\DataTablesMvc.cs")
|
||||
$DTE.ItemOperations.OpenFile($appstart)
|
Loading…
Add table
Add a link
Reference in a new issue