Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgraded to NH3.3.1, fixed exc handling issue in SessionPerRequestMod…

…ule, added RoR-like DB migrations support
  • Loading branch information...
commit a09390ee1f9eb1e5d6fdef3a0fd3e719681f250f 1 parent fbd12fe
Billy McCafferty authored
Showing with 92,532 additions and 297,404 deletions.
  1. +30 −0 Example/CaTS/Day4/app/CaTS.Web/Web.Debug.config
  2. +31 −0 Example/CaTS/Day4/app/CaTS.Web/Web.Release.config
  3. BIN  Example/CaTS/Day4/lib/Iesi.Collections.dll
  4. +0 −1,903 Example/CaTS/Day4/lib/Iesi.Collections.xml
  5. BIN  Example/CaTS/Day4/lib/NHibernate.dll
  6. +0 −43,401 Example/CaTS/Day4/lib/NHibernate.xml
  7. +0 −5,624 Example/CaTS/Day4/lib/Rhino.Mocks.xml
  8. BIN  Example/CaTS/Day4/lib/SharpLite.Domain.dll
  9. BIN  Example/CaTS/Day4/lib/SharpLite.NHibernateProvider.dll
  10. BIN  Example/CaTS/Day4/lib/SharpLite.Web.dll
  11. +0 −3,874 Example/CaTS/Day4/lib/StructureMap.xml
  12. +0 −9,395 Example/CaTS/Day4/lib/System.Web.Mvc.xml
  13. +0 −28,655 Example/CaTS/Day4/lib/log4net.xml
  14. +0 −10,407 Example/CaTS/Day4/lib/nunit.framework.xml
  15. +30 −0 Example/CaTS/Day5/app/CaTS.Web/Web.Debug.config
  16. +31 −0 Example/CaTS/Day5/app/CaTS.Web/Web.Release.config
  17. BIN  Example/CaTS/Day5/lib/Iesi.Collections.dll
  18. +0 −1,903 Example/CaTS/Day5/lib/Iesi.Collections.xml
  19. BIN  Example/CaTS/Day5/lib/NHibernate.dll
  20. +0 −43,401 Example/CaTS/Day5/lib/NHibernate.xml
  21. +0 −5,624 Example/CaTS/Day5/lib/Rhino.Mocks.xml
  22. BIN  Example/CaTS/Day5/lib/SharpLite.Domain.dll
  23. BIN  Example/CaTS/Day5/lib/SharpLite.NHibernateProvider.dll
  24. BIN  Example/CaTS/Day5/lib/SharpLite.Web.dll
  25. +0 −3,874 Example/CaTS/Day5/lib/StructureMap.xml
  26. +0 −9,395 Example/CaTS/Day5/lib/System.Web.Mvc.xml
  27. +0 −28,655 Example/CaTS/Day5/lib/log4net.xml
  28. +0 −10,407 Example/CaTS/Day5/lib/nunit.framework.xml
  29. +14 −14 Example/MyStore/app/MyStore.NHibernateProvider/Overrides/ContractTypeCustomType.cs
  30. +30 −0 Example/MyStore/app/MyStore.Web/Web.Debug.config
  31. +31 −0 Example/MyStore/app/MyStore.Web/Web.Release.config
  32. BIN  Example/MyStore/lib/Iesi.Collections.dll
  33. BIN  Example/MyStore/lib/NHibernate.dll
  34. BIN  Example/MyStore/lib/SharpLite.Domain.dll
  35. BIN  Example/MyStore/lib/SharpLite.NHibernateProvider.dll
  36. BIN  Example/MyStore/lib/SharpLite.Web.dll
  37. +1 −1  README.txt
  38. +37 −11 SharpLiteSrc/app/SharpLite.NHibernateProvider/Web/SessionPerRequestModule.cs
  39. BIN  SharpLiteSrc/build/SharpLite.Domain.dll
  40. BIN  SharpLiteSrc/build/SharpLite.EntityFrameworkProvider.dll
  41. BIN  SharpLiteSrc/build/SharpLite.NHibernateProvider.dll
  42. BIN  SharpLiteSrc/build/SharpLite.Web.dll
  43. BIN  SharpLiteSrc/lib/Iesi.Collections.dll
  44. +1,903 −1,903 SharpLiteSrc/lib/Iesi.Collections.xml
  45. BIN  SharpLiteSrc/lib/NHibernate.dll
  46. +44,063 −43,398 SharpLiteSrc/lib/NHibernate.xml
  47. +68 −68 Template/TemplateSrc/app/TemplateSrc.Tests/TemplateSrc.Tests.csproj
  48. +195 −188 Template/TemplateSrc/app/TemplateSrc.Web/TemplateSrc.Web.csproj
  49. +30 −0 Template/TemplateSrc/app/TemplateSrc.Web/Web.Debug.config
  50. +31 −0 Template/TemplateSrc/app/TemplateSrc.Web/Web.Release.config
  51. +9 −0 Template/TemplateSrc/app/TemplateSrc.Web/packages.config
  52. BIN  Template/TemplateSrc/lib/Iesi.Collections.dll
  53. +1,903 −1,903 Template/TemplateSrc/lib/Iesi.Collections.xml
  54. BIN  Template/TemplateSrc/lib/NHibernate.dll
  55. +44,063 −43,398 Template/TemplateSrc/lib/NHibernate.xml
  56. BIN  Template/TemplateSrc/lib/SharpLite.Domain.dll
  57. BIN  Template/TemplateSrc/lib/SharpLite.NHibernateProvider.dll
  58. BIN  Template/TemplateSrc/lib/SharpLite.Web.dll
  59. BIN  Template/s#arp-lite-project-v0.42.02.pkg
  60. BIN  Template/s#arp-lite-project-v0.9.pkg
  61. +32 −2 VersionHistory.txt
30 Example/CaTS/Day4/app/CaTS.Web/Web.Debug.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
31 Example/CaTS/Day4/app/CaTS.Web/Web.Release.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
BIN  Example/CaTS/Day4/lib/Iesi.Collections.dll
View
Binary file not shown
1,903 Example/CaTS/Day4/lib/Iesi.Collections.xml
View
0 additions, 1,903 deletions not shown
BIN  Example/CaTS/Day4/lib/NHibernate.dll
View
Binary file not shown
43,401 Example/CaTS/Day4/lib/NHibernate.xml
View
0 additions, 43,401 deletions not shown
5,624 Example/CaTS/Day4/lib/Rhino.Mocks.xml
View
0 additions, 5,624 deletions not shown
BIN  Example/CaTS/Day4/lib/SharpLite.Domain.dll
View
Binary file not shown
BIN  Example/CaTS/Day4/lib/SharpLite.NHibernateProvider.dll
View
Binary file not shown
BIN  Example/CaTS/Day4/lib/SharpLite.Web.dll
View
Binary file not shown
3,874 Example/CaTS/Day4/lib/StructureMap.xml
View
0 additions, 3,874 deletions not shown
9,395 Example/CaTS/Day4/lib/System.Web.Mvc.xml
View
0 additions, 9,395 deletions not shown
28,655 Example/CaTS/Day4/lib/log4net.xml
View
0 additions, 28,655 deletions not shown
10,407 Example/CaTS/Day4/lib/nunit.framework.xml
View
0 additions, 10,407 deletions not shown
30 Example/CaTS/Day5/app/CaTS.Web/Web.Debug.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
31 Example/CaTS/Day5/app/CaTS.Web/Web.Release.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
BIN  Example/CaTS/Day5/lib/Iesi.Collections.dll
View
Binary file not shown
1,903 Example/CaTS/Day5/lib/Iesi.Collections.xml
View
0 additions, 1,903 deletions not shown
BIN  Example/CaTS/Day5/lib/NHibernate.dll
View
Binary file not shown
43,401 Example/CaTS/Day5/lib/NHibernate.xml
View
0 additions, 43,401 deletions not shown
5,624 Example/CaTS/Day5/lib/Rhino.Mocks.xml
View
0 additions, 5,624 deletions not shown
BIN  Example/CaTS/Day5/lib/SharpLite.Domain.dll
View
Binary file not shown
BIN  Example/CaTS/Day5/lib/SharpLite.NHibernateProvider.dll
View
Binary file not shown
BIN  Example/CaTS/Day5/lib/SharpLite.Web.dll
View
Binary file not shown
3,874 Example/CaTS/Day5/lib/StructureMap.xml
View
0 additions, 3,874 deletions not shown
9,395 Example/CaTS/Day5/lib/System.Web.Mvc.xml
View
0 additions, 9,395 deletions not shown
28,655 Example/CaTS/Day5/lib/log4net.xml
View
0 additions, 28,655 deletions not shown
10,407 Example/CaTS/Day5/lib/nunit.framework.xml
View
0 additions, 10,407 deletions not shown
28 Example/MyStore/app/MyStore.NHibernateProvider/Overrides/ContractTypeCustomType.cs
View
@@ -1,17 +1,17 @@
using System;
-using MyStore.Domain;
-using NHibernate.Type;
-
-namespace MyStore.NHibernateProvider.Overrides
-{
- /// <summary>
- /// Used to inform NHibernate to which enum type the stored int should be mapped
+using MyStore.Domain;
+using NHibernate.Type;
+
+namespace MyStore.NHibernateProvider.Overrides
+{
+ /// <summary>
+ /// Used to inform NHibernate to which enum type the stored int should be mapped
/// </summary>
/// <remarks>Needs to be serializable for NHibernate configuration caching</remarks>
- [Serializable]
- public class OrderStatusCustomType : PersistentEnumType
- {
- public OrderStatusCustomType()
- : base(typeof(OrderStatusType)) { }
- }
-}
+ [Serializable]
+ public class OrderStatusCustomType : PersistentEnumType
+ {
+ public OrderStatusCustomType()
+ : base(typeof(OrderStatusType)) { }
+ }
+}
30 Example/MyStore/app/MyStore.Web/Web.Debug.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
31 Example/MyStore/app/MyStore.Web/Web.Release.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
BIN  Example/MyStore/lib/Iesi.Collections.dll
View
Binary file not shown
BIN  Example/MyStore/lib/NHibernate.dll
View
Binary file not shown
BIN  Example/MyStore/lib/SharpLite.Domain.dll
View
Binary file not shown
BIN  Example/MyStore/lib/SharpLite.NHibernateProvider.dll
View
Binary file not shown
BIN  Example/MyStore/lib/SharpLite.Web.dll
View
Binary file not shown
2  README.txt
View
@@ -18,7 +18,7 @@ To get started with your first S#arp Lite project...
#) Install Templify, available from https://github.com/endjin/Templify/downloads (Templify-v0.6.15144.msi was used with this release.)
-#) Copy \SharpLite\Template\s#arp-lite-project-v0.42.02.pkg to C:\Users\%USER%\AppData\Roaming\Endjin\Templify\repo\
+#) Copy \SharpLite\Template\s#arp-lite-project-v0.9.pkg to C:\Users\%USER%\AppData\Roaming\Endjin\Templify\repo\
(Note that the AppData folder is hidden by default.)
#) In Windows Explorer, create a new, empty folder for your S#arp Lite project (e.g., "MyNewProject")
48 SharpLiteSrc/app/SharpLite.NHibernateProvider/Web/SessionPerRequestModule.cs
View
@@ -1,9 +1,9 @@
-using System;
-using System.Web;
-using NHibernate;
-using System.Collections.Generic;
-// This is needed for the DependencyResolver...wish they would've just used Common Service Locator!
-using System.Web.Mvc;
+using System;
+using System.Web;
+using NHibernate;
+using System.Collections.Generic;
+// This is needed for the DependencyResolver...wish they would've just used Common Service Locator!
+using System.Web.Mvc;
using System.Linq;
namespace SharpLite.NHibernateProvider.Web
@@ -16,6 +16,7 @@ public class SessionPerRequestModule : IHttpModule
public void Init(HttpApplication context) {
context.BeginRequest += ContextBeginRequest;
context.EndRequest += ContextEndRequest;
+ context.Error += ContextError;
}
private void ContextBeginRequest(object sender, EventArgs e) {
@@ -40,12 +41,37 @@ public class SessionPerRequestModule : IHttpModule
}
}
- private static void EndSession(ISession session) {
- if (session.Transaction != null && session.Transaction.IsActive) {
- session.Transaction.Commit();
+ private void ContextError(object sender, EventArgs e) {
+ foreach (var sessionfactory in GetSessionFactories()) {
+ var session = LazySessionContext.UnBind(sessionfactory);
+ if (session == null) continue;
+ EndSession(session, false);
}
+ }
- session.Dispose();
+ private static void EndSession(ISession session, bool commitTransaction = true) {
+ try {
+ if (session.Transaction != null && session.Transaction.IsActive) {
+ if (commitTransaction) {
+ try {
+ session.Transaction.Commit();
+ }
+ catch {
+ session.Transaction.Rollback();
+ throw;
+ }
+ }
+ else {
+ session.Transaction.Rollback();
+ }
+ }
+ }
+ finally {
+ if (session.IsOpen)
+ session.Close();
+
+ session.Dispose();
+ }
}
public void Dispose() { }
@@ -62,4 +88,4 @@ public class SessionPerRequestModule : IHttpModule
return sessionFactories;
}
}
-}
+}
BIN  SharpLiteSrc/build/SharpLite.Domain.dll
View
Binary file not shown
BIN  SharpLiteSrc/build/SharpLite.EntityFrameworkProvider.dll
View
Binary file not shown
BIN  SharpLiteSrc/build/SharpLite.NHibernateProvider.dll
View
Binary file not shown
BIN  SharpLiteSrc/build/SharpLite.Web.dll
View
Binary file not shown
BIN  SharpLiteSrc/lib/Iesi.Collections.dll
View
Binary file not shown
3,806 SharpLiteSrc/lib/Iesi.Collections.xml
View
1,903 additions, 1,903 deletions not shown
BIN  SharpLiteSrc/lib/NHibernate.dll
View
Binary file not shown
87,461 SharpLiteSrc/lib/NHibernate.xml
View
44,063 additions, 43,398 deletions not shown
136 Template/TemplateSrc/app/TemplateSrc.Tests/TemplateSrc.Tests.csproj
View
@@ -1,75 +1,75 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{CEF24DDD-1D15-42BC-B035-4A33388C3F8C}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>TemplateSrc.Tests</RootNamespace>
- <AssemblyName>TemplateSrc.Tests</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="NHibernate">
- <HintPath>..\..\lib\NHibernate.dll</HintPath>
- </Reference>
- <Reference Include="nunit.framework, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\..\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="NHibernateProvider\MappingIntegrationTests.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Domain\" />
- <Folder Include="Tasks\" />
- <Folder Include="Web\" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\TemplateSrc.NHibernateProvider\TemplateSrc.NHibernateProvider.csproj">
- <Project>{4E471CAC-A108-49AE-A4D6-155DC35712C9}</Project>
- <Name>TemplateSrc.NHibernateProvider</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{CEF24DDD-1D15-42BC-B035-4A33388C3F8C}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TemplateSrc.Tests</RootNamespace>
+ <AssemblyName>TemplateSrc.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="NHibernate">
+ <HintPath>..\..\lib\NHibernate.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="NHibernateProvider\MappingIntegrationTests.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Domain\" />
+ <Folder Include="Tasks\" />
+ <Folder Include="Web\" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\TemplateSrc.NHibernateProvider\TemplateSrc.NHibernateProvider.csproj">
+ <Project>{4E471CAC-A108-49AE-A4D6-155DC35712C9}</Project>
+ <Name>TemplateSrc.NHibernateProvider</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
- -->
+ -->
</Project>
383 Template/TemplateSrc/app/TemplateSrc.Web/TemplateSrc.Web.csproj
View
@@ -1,194 +1,201 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>
- </ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3B107D47-9BB3-4D6A-80E2-E430D6C06F45}</ProjectGuid>
- <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>TemplateSrc.Web</RootNamespace>
- <AssemblyName>TemplateSrc.Web</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <MvcBuildViews>false</MvcBuildViews>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="log4net">
- <HintPath>..\..\lib\log4net.dll</HintPath>
- </Reference>
- <Reference Include="SharpLite.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f2f64e823dfaf078, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\SharpLite.Domain.dll</HintPath>
- </Reference>
- <Reference Include="SharpLite.Web, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\SharpLite.Web.dll</HintPath>
- </Reference>
- <Reference Include="System.Data.Entity" />
- <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Web.DynamicData" />
- <Reference Include="System.Web.Entity" />
- <Reference Include="System.Web.ApplicationServices" />
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Core" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Extensions" />
- <Reference Include="System.Web.Abstractions" />
- <Reference Include="System.Web.Routing" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Configuration" />
- <Reference Include="System.Web.Services" />
- <Reference Include="System.EnterpriseServices" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Controllers\HomeController.cs" />
- <Compile Include="Global.asax.cs">
- <DependentUpon>Global.asax</DependentUpon>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" />
- <Content Include="Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png" />
- <Content Include="Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png" />
- <Content Include="Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png" />
- <Content Include="Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png" />
- <Content Include="Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png" />
- <Content Include="Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png" />
- <Content Include="Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
- <Content Include="Content\themes\base\images\ui-icons_222222_256x240.png" />
- <Content Include="Content\themes\base\images\ui-icons_2e83ff_256x240.png" />
- <Content Include="Content\themes\base\images\ui-icons_454545_256x240.png" />
- <Content Include="Content\themes\base\images\ui-icons_888888_256x240.png" />
- <Content Include="Content\themes\base\images\ui-icons_cd0a0a_256x240.png" />
- <Content Include="Content\themes\base\jquery.ui.accordion.css" />
- <Content Include="Content\themes\base\jquery.ui.all.css" />
- <Content Include="Content\themes\base\jquery.ui.autocomplete.css" />
- <Content Include="Content\themes\base\jquery.ui.base.css" />
- <Content Include="Content\themes\base\jquery.ui.button.css" />
- <Content Include="Content\themes\base\jquery.ui.core.css" />
- <Content Include="Content\themes\base\jquery.ui.datepicker.css" />
- <Content Include="Content\themes\base\jquery.ui.dialog.css" />
- <Content Include="Content\themes\base\jquery.ui.progressbar.css" />
- <Content Include="Content\themes\base\jquery.ui.resizable.css" />
- <Content Include="Content\themes\base\jquery.ui.selectable.css" />
- <Content Include="Content\themes\base\jquery.ui.slider.css" />
- <Content Include="Content\themes\base\jquery.ui.tabs.css" />
- <Content Include="Content\themes\base\jquery.ui.theme.css" />
- <Content Include="Global.asax" />
- <Content Include="Content\Site.css" />
- <Content Include="Scripts\jquery-1.5.1-vsdoc.js" />
- <Content Include="Scripts\jquery-1.5.1.js" />
- <Content Include="Scripts\jquery-1.5.1.min.js" />
- <Content Include="Scripts\jquery-ui-1.8.11.js" />
- <Content Include="Scripts\jquery-ui-1.8.11.min.js" />
- <Content Include="Scripts\jquery.validate-vsdoc.js" />
- <Content Include="Scripts\jquery.validate.js" />
- <Content Include="Scripts\jquery.validate.min.js" />
- <Content Include="Scripts\modernizr-1.7.js" />
- <Content Include="Scripts\modernizr-1.7.min.js" />
- <Content Include="Web.config">
- <SubType>Designer</SubType>
- </Content>
- <Content Include="Web.Debug.config">
- <DependentUpon>Web.config</DependentUpon>
- </Content>
- <Content Include="Web.Release.config">
- <DependentUpon>Web.config</DependentUpon>
- </Content>
- <Content Include="Scripts\jquery.unobtrusive-ajax.js" />
- <Content Include="Scripts\jquery.unobtrusive-ajax.min.js" />
- <Content Include="Scripts\jquery.validate.unobtrusive.js" />
- <Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
- <Content Include="Scripts\MicrosoftAjax.js" />
- <Content Include="Scripts\MicrosoftAjax.debug.js" />
- <Content Include="Scripts\MicrosoftMvcAjax.js" />
- <Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
- <Content Include="Scripts\MicrosoftMvcValidation.js" />
- <Content Include="Scripts\MicrosoftMvcValidation.debug.js" />
- <Content Include="Views\Web.config" />
- <Content Include="Views\_ViewStart.cshtml" />
- <Content Include="Views\Shared\Error.cshtml" />
- <Content Include="Views\Shared\_Layout.cshtml" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Areas\" />
- <Folder Include="Views\Shared\DisplayTemplates\" />
- <Folder Include="Views\Shared\EditorTemplates\" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="Views\Home\Index.cshtml" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\TemplateSrc.Domain\TemplateSrc.Domain.csproj">
- <Project>{74801410-F690-490C-91EA-CD94E520A465}</Project>
- <Name>TemplateSrc.Domain</Name>
- </ProjectReference>
- <ProjectReference Include="..\TemplateSrc.Init\TemplateSrc.Init.csproj">
- <Project>{7112AC6B-C406-481D-99D4-56BA796B7173}</Project>
- <Name>TemplateSrc.Init</Name>
- </ProjectReference>
- <ProjectReference Include="..\TemplateSrc.Tasks\TemplateSrc.Tasks.csproj">
- <Project>{BE147A77-3E59-40E6-822D-5AEDFD5D383C}</Project>
- <Name>TemplateSrc.Tasks</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{3B107D47-9BB3-4D6A-80E2-E430D6C06F45}</ProjectGuid>
+ <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TemplateSrc.Web</RootNamespace>
+ <AssemblyName>TemplateSrc.Web</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <MvcBuildViews>false</MvcBuildViews>
+ <UseIISExpress>false</UseIISExpress>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="log4net">
+ <HintPath>..\..\lib\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="SharpLite.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f2f64e823dfaf078, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\SharpLite.Domain.dll</HintPath>
+ </Reference>
+ <Reference Include="SharpLite.Web, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\SharpLite.Web.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Data.Entity" />
+ <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Abstractions">
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="System.Web.Routing">
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Web.Services" />
+ <Reference Include="System.EnterpriseServices" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="Global.asax.cs">
+ <DependentUpon>Global.asax</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" />
+ <Content Include="Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png" />
+ <Content Include="Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png" />
+ <Content Include="Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png" />
+ <Content Include="Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png" />
+ <Content Include="Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png" />
+ <Content Include="Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png" />
+ <Content Include="Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
+ <Content Include="Content\themes\base\images\ui-icons_222222_256x240.png" />
+ <Content Include="Content\themes\base\images\ui-icons_2e83ff_256x240.png" />
+ <Content Include="Content\themes\base\images\ui-icons_454545_256x240.png" />
+ <Content Include="Content\themes\base\images\ui-icons_888888_256x240.png" />
+ <Content Include="Content\themes\base\images\ui-icons_cd0a0a_256x240.png" />
+ <Content Include="Content\themes\base\jquery.ui.accordion.css" />
+ <Content Include="Content\themes\base\jquery.ui.all.css" />
+ <Content Include="Content\themes\base\jquery.ui.autocomplete.css" />
+ <Content Include="Content\themes\base\jquery.ui.base.css" />
+ <Content Include="Content\themes\base\jquery.ui.button.css" />
+ <Content Include="Content\themes\base\jquery.ui.core.css" />
+ <Content Include="Content\themes\base\jquery.ui.datepicker.css" />
+ <Content Include="Content\themes\base\jquery.ui.dialog.css" />
+ <Content Include="Content\themes\base\jquery.ui.progressbar.css" />
+ <Content Include="Content\themes\base\jquery.ui.resizable.css" />
+ <Content Include="Content\themes\base\jquery.ui.selectable.css" />
+ <Content Include="Content\themes\base\jquery.ui.slider.css" />
+ <Content Include="Content\themes\base\jquery.ui.tabs.css" />
+ <Content Include="Content\themes\base\jquery.ui.theme.css" />
+ <Content Include="Global.asax" />
+ <Content Include="Content\Site.css" />
+ <Content Include="Scripts\jquery-1.5.1-vsdoc.js" />
+ <Content Include="Scripts\jquery-1.5.1.js" />
+ <Content Include="Scripts\jquery-1.5.1.min.js" />
+ <Content Include="Scripts\jquery-ui-1.8.11.js" />
+ <Content Include="Scripts\jquery-ui-1.8.11.min.js" />
+ <Content Include="Scripts\jquery.validate-vsdoc.js" />
+ <Content Include="Scripts\jquery.validate.js" />
+ <Content Include="Scripts\jquery.validate.min.js" />
+ <Content Include="Scripts\modernizr-1.7.js" />
+ <Content Include="Scripts\modernizr-1.7.min.js" />
+ <Content Include="Web.config">
+ <SubType>Designer</SubType>
+ </Content>
+ <Content Include="Web.Debug.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ <Content Include="Web.Release.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ <Content Include="Scripts\jquery.unobtrusive-ajax.js" />
+ <Content Include="Scripts\jquery.unobtrusive-ajax.min.js" />
+ <Content Include="Scripts\jquery.validate.unobtrusive.js" />
+ <Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
+ <Content Include="Scripts\MicrosoftAjax.js" />
+ <Content Include="Scripts\MicrosoftAjax.debug.js" />
+ <Content Include="Scripts\MicrosoftMvcAjax.js" />
+ <Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
+ <Content Include="Scripts\MicrosoftMvcValidation.js" />
+ <Content Include="Scripts\MicrosoftMvcValidation.debug.js" />
+ <Content Include="Views\Web.config" />
+ <Content Include="Views\_ViewStart.cshtml" />
+ <Content Include="Views\Shared\Error.cshtml" />
+ <Content Include="Views\Shared\_Layout.cshtml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Areas\" />
+ <Folder Include="Views\Shared\DisplayTemplates\" />
+ <Folder Include="Views\Shared\EditorTemplates\" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Views\Home\Index.cshtml" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\TemplateSrc.Domain\TemplateSrc.Domain.csproj">
+ <Project>{74801410-F690-490C-91EA-CD94E520A465}</Project>
+ <Name>TemplateSrc.Domain</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\TemplateSrc.Init\TemplateSrc.Init.csproj">
+ <Project>{7112AC6B-C406-481D-99D4-56BA796B7173}</Project>
+ <Name>TemplateSrc.Init</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\TemplateSrc.Tasks\TemplateSrc.Tasks.csproj">
+ <Project>{BE147A77-3E59-40E6-822D-5AEDFD5D383C}</Project>
+ <Name>TemplateSrc.Tasks</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
- </Target> -->
- <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
- <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
- </Target>
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
- <WebProjectProperties>
- <UseIIS>False</UseIIS>
- <AutoAssignPort>True</AutoAssignPort>
- <DevelopmentServerPort>55462</DevelopmentServerPort>
- <DevelopmentServerVPath>/</DevelopmentServerVPath>
- <IISUrl>
- </IISUrl>
- <NTLMAuthentication>False</NTLMAuthentication>
- <UseCustomServer>False</UseCustomServer>
- <CustomServerUrl>
- </CustomServerUrl>
- <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
- </WebProjectProperties>
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
+ </Target> -->
+ <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
+ <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
+ </Target>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>55462</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
</Project>
30 Template/TemplateSrc/app/TemplateSrc.Web/Web.Debug.config
View
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
31 Template/TemplateSrc/app/TemplateSrc.Web/Web.Release.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an atrribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
9 Template/TemplateSrc/app/TemplateSrc.Web/packages.config
View
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="EntityFramework" version="4.1.10331.0" />
+ <package id="jQuery" version="1.5.1" />
+ <package id="jQuery.UI.Combined" version="1.8.11" />
+ <package id="jQuery.Validation" version="1.8.0" />
+ <package id="jQuery.vsdoc" version="1.5.1" />
+ <package id="Modernizr" version="1.7" />
+</packages>
BIN  Template/TemplateSrc/lib/Iesi.Collections.dll
View
Binary file not shown
3,806 Template/TemplateSrc/lib/Iesi.Collections.xml
View
1,903 additions, 1,903 deletions not shown
BIN  Template/TemplateSrc/lib/NHibernate.dll
View
Binary file not shown
87,461 Template/TemplateSrc/lib/NHibernate.xml
View
44,063 additions, 43,398 deletions not shown
BIN  Template/TemplateSrc/lib/SharpLite.Domain.dll
View
Binary file not shown
BIN  Template/TemplateSrc/lib/SharpLite.NHibernateProvider.dll
View
Binary file not shown
BIN  Template/TemplateSrc/lib/SharpLite.Web.dll
View
Binary file not shown
BIN  Template/s#arp-lite-project-v0.42.02.pkg
View
Binary file not shown
BIN  Template/s#arp-lite-project-v0.9.pkg
View
Binary file not shown
34 VersionHistory.txt
View
@@ -1,8 +1,37 @@
==================================================
+S#arp Lite 0.9
+==================================================
+
+Resolved the following issues:
+* Upgraded to NHibernate 3.3.1
+* Fixed exception handling issue within SessionPerRequestModule that was leaving connections open
+* Added \SharpLite\Template\TemplateSrc\app\TemplateSrc.DB\Migrations\_SqlMigrations.exe which
+ will be included in all Templify generated S#arp Lite projects. Details about this project may
+ be found at http://code.google.com/p/db-migrations-in-raw-sql/
+
+Upgrading from previous version:
+
+#) Copy the following into your project's lib folder:
+ * \SharpLite\Template\TemplateSrc\lib\SharpLite.*
+ * \SharpLite\Template\TemplateSrc\lib\Iesi.Collections.*
+ * \SharpLite\Template\TemplateSrc\lib\NHibernate.*
+
+#) To upgrade the Templify template, copy \SharpLite\Template\s#arp-lite-project-v0.9.pkg to
+C:\Users\%USER%\AppData\Roaming\Endjin\Templify\repo\ (Note that the AppData folder is hidden by
+default.)
+
+Coming in v 1.0...
+
+* More documentation, example code, and blog posts
+* Support for Entity Framework in addition to NHibernate
+* ASP.NET MVC 4 (if available at release)
+
+==================================================
S#arp Lite 0.42.02
==================================================
-Added good sized example project and very comprehensive greenfield development with S#arp Lite under \SharpLite\Example\CaTS
+Added good sized example project and very comprehensive greenfield development with S#arp Lite
+under \SharpLite\Example\CaTS
Resolved the following issues:
* https://github.com/codai/Sharp-Lite/pull/8
@@ -14,7 +43,8 @@ Resolved the following issues:
Upgrading from previous version:
#) Copy \SharpLite\Template\TemplateSrc\lib\SharpLite.* into your project's lib folder
-#) To use NHibernate configuration caching, emulate \SharpLite\Example\MyStore\app\MyStore.NHibernateProvider\NHibernateInitializer.cs
+#) To use NHibernate configuration caching, emulate
+ \SharpLite\Example\MyStore\app\MyStore.NHibernateProvider\NHibernateInitializer.cs
==================================================
S#arp Lite 0.42.01
Please sign in to comment.
Something went wrong with that request. Please try again.