Skip to content

Commit d24f66a

Browse files
Garvin CasimirGarvin Casimir
authored andcommitted
Added sample mvc project, test project and support for DbContext based entity queries
1 parent 5c23a47 commit d24f66a

File tree

239 files changed

+112680
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+112680
-8
lines changed

DataTablesParser/App.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6+
</configSections>
7+
<entityFramework>
8+
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
9+
<parameters>
10+
<parameter value="v11.0" />
11+
</parameters>
12+
</defaultConnectionFactory>
13+
</entityFramework>
14+
</configuration>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace DataTablesParser.WebSample
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
15+
"~/Scripts/jquery-ui-{version}.js"));
16+
17+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
18+
"~/Scripts/jquery.unobtrusive*",
19+
"~/Scripts/jquery.validate*"));
20+
21+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
22+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
23+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
24+
"~/Scripts/modernizr-*"));
25+
26+
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
27+
28+
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
29+
"~/Content/themes/base/jquery.ui.core.css",
30+
"~/Content/themes/base/jquery.ui.resizable.css",
31+
"~/Content/themes/base/jquery.ui.selectable.css",
32+
"~/Content/themes/base/jquery.ui.accordion.css",
33+
"~/Content/themes/base/jquery.ui.autocomplete.css",
34+
"~/Content/themes/base/jquery.ui.button.css",
35+
"~/Content/themes/base/jquery.ui.dialog.css",
36+
"~/Content/themes/base/jquery.ui.slider.css",
37+
"~/Content/themes/base/jquery.ui.tabs.css",
38+
"~/Content/themes/base/jquery.ui.datepicker.css",
39+
"~/Content/themes/base/jquery.ui.progressbar.css",
40+
"~/Content/themes/base/jquery.ui.theme.css"));
41+
42+
//datatables
43+
bundles.Add(new ScriptBundle("~/bundles/datatables").Include(
44+
"~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js"));
45+
46+
bundles.Add(new StyleBundle("~/Content/datatables/css").Include("~/Content/DataTables-1.9.4/media/css/demo_table.css"));
47+
}
48+
}
49+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace DataTablesParser.WebSample
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace DataTablesParser.WebSample
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Person", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web.Http;
5+
6+
namespace DataTablesParser.WebSample
7+
{
8+
public static class WebApiConfig
9+
{
10+
public static void Register(HttpConfiguration config)
11+
{
12+
config.Routes.MapHttpRoute(
13+
name: "DefaultApi",
14+
routeTemplate: "api/{controller}/{id}",
15+
defaults: new { id = RouteParameter.Optional }
16+
);
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)