Skip to content

Commit 2096b40

Browse files
author
Nathan Bridgewater
committed
added some handy t4 scripts for sub-sonic
1 parent dde2205 commit 2096b40

36 files changed

+1725
-1725
lines changed
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
/* Styles for validation helpers
2-
-----------------------------------------------------------*/
3-
.field-validation-error
4-
{
5-
color: #ff0000;
6-
}
7-
8-
.field-validation-valid
9-
{
10-
display: none;
11-
}
12-
13-
.input-validation-error
14-
{
15-
border: 1px solid #ff0000;
16-
background-color: #ffeeee;
17-
}
18-
19-
.validation-summary-errors
20-
{
21-
font-weight: bold;
22-
color: #ff0000;
23-
}
24-
25-
.validation-summary-valid
26-
{
27-
display: none;
28-
}
1+
/* Styles for validation helpers
2+
-----------------------------------------------------------*/
3+
.field-validation-error
4+
{
5+
color: #ff0000;
6+
}
7+
8+
.field-validation-valid
9+
{
10+
display: none;
11+
}
12+
13+
.input-validation-error
14+
{
15+
border: 1px solid #ff0000;
16+
background-color: #ffeeee;
17+
}
18+
19+
.validation-summary-errors
20+
{
21+
font-weight: bold;
22+
color: #ff0000;
23+
}
24+
25+
.validation-summary-valid
26+
{
27+
display: none;
28+
}
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Web;
5-
using System.Web.Mvc;
6-
7-
namespace ClientWebsite.Controllers
8-
{
9-
public class HomeController : Controller
10-
{
11-
//
12-
// GET: /Home/
13-
14-
public ActionResult Index()
15-
{
16-
return View();
17-
}
18-
19-
}
20-
}
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
7+
namespace ClientWebsite.Controllers
8+
{
9+
public class HomeController : Controller
10+
{
11+
//
12+
// GET: /Home/
13+
14+
public ActionResult Index()
15+
{
16+
return View();
17+
}
18+
19+
}
20+
}

JsonPDemo/ClientWebsite/Global.asax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<%@ Application Codebehind="Global.asax.cs" Inherits="ClientWebsite.MvcApplication" Language="C#" %>
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="ClientWebsite.MvcApplication" Language="C#" %>
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
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 ClientWebsite
9-
{
10-
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
11-
// visit http://go.microsoft.com/?LinkId=9394801
12-
13-
public class MvcApplication : System.Web.HttpApplication
14-
{
15-
public static void RegisterRoutes(RouteCollection routes)
16-
{
17-
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
18-
19-
routes.MapRoute(
20-
"Default", // Route name
21-
"{controller}/{action}/{id}", // URL with parameters
22-
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
23-
);
24-
25-
}
26-
27-
protected void Application_Start()
28-
{
29-
AreaRegistration.RegisterAllAreas();
30-
31-
RegisterRoutes(RouteTable.Routes);
32-
}
33-
}
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 ClientWebsite
9+
{
10+
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
11+
// visit http://go.microsoft.com/?LinkId=9394801
12+
13+
public class MvcApplication : System.Web.HttpApplication
14+
{
15+
public static void RegisterRoutes(RouteCollection routes)
16+
{
17+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
18+
19+
routes.MapRoute(
20+
"Default", // Route name
21+
"{controller}/{action}/{id}", // URL with parameters
22+
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
23+
);
24+
25+
}
26+
27+
protected void Application_Start()
28+
{
29+
AreaRegistration.RegisterAllAreas();
30+
31+
RegisterRoutes(RouteTable.Routes);
32+
}
33+
}
3434
}
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
4-
5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("ClientWebsite")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("Microsoft")]
12-
[assembly: AssemblyProduct("ClientWebsite")]
13-
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("0d90b3db-aef5-4040-88b6-78bae8e52dca")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Revision and Build Numbers
33-
// by using the '*' as shown below:
34-
[assembly: AssemblyVersion("1.0.0.0")]
35-
[assembly: AssemblyFileVersion("1.0.0.0")]
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("ClientWebsite")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Microsoft")]
12+
[assembly: AssemblyProduct("ClientWebsite")]
13+
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("0d90b3db-aef5-4040-88b6-78bae8e52dca")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)