Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding a simple page showing the current blog

  • Loading branch information...
commit 6628d85b05d1d14cce535a49caa40c7d7d7d02a4 1 parent 52bb89c
Ayende Rahien authored March 29, 2011
6  CourseSampleApp.sln
@@ -3,6 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 11.00
3 3
 # Visual Studio 2010
4 4
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CourseSampleApp", "CourseSampleApp\CourseSampleApp.csproj", "{2EFA9077-030C-4C8D-86A7-B8D5B3632A64}"
5 5
 EndProject
  6
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FBE8DB2C-C746-49F8-A3D5-A9560268DEA6}"
  7
+	ProjectSection(SolutionItems) = preProject
  8
+		..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-configuration.xsd = ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-configuration.xsd
  9
+		..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-mapping.xsd = ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-mapping.xsd
  10
+	EndProjectSection
  11
+EndProject
6 12
 Global
7 13
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 14
 		Debug|Any CPU = Debug|Any CPU
15  CourseSampleApp/Controllers/HomeController.cs
... ...
@@ -0,0 +1,15 @@
  1
+using System.Web.Mvc;
  2
+using CourseSampleApp.Models;
  3
+
  4
+namespace CourseSampleApp.Controllers
  5
+{
  6
+	public class HomeController : SessionController
  7
+	{
  8
+		public ActionResult Blog(int id)
  9
+		{
  10
+			var blog = Session.Get<Blog>(id);
  11
+
  12
+			return Json(blog, JsonRequestBehavior.AllowGet);
  13
+		}
  14
+	}
  15
+}
33  CourseSampleApp/CourseSampleApp.csproj
@@ -33,6 +33,22 @@
33 33
     <WarningLevel>4</WarningLevel>
34 34
   </PropertyGroup>
35 35
   <ItemGroup>
  36
+    <Reference Include="Castle.Core">
  37
+      <HintPath>..\packages\Castle.Core.2.5.2\lib\NET35\Castle.Core.dll</HintPath>
  38
+    </Reference>
  39
+    <Reference Include="HibernatingRhinos.Profiler.Appender, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c4acf6557bae1384, processorArchitecture=x86">
  40
+      <SpecificVersion>False</SpecificVersion>
  41
+      <HintPath>..\..\..\..\..\..\..\Work\nhprof\build\HibernatingRhinos.Profiler.Appender.dll</HintPath>
  42
+    </Reference>
  43
+    <Reference Include="Iesi.Collections">
  44
+      <HintPath>..\packages\Iesi.Collections.3.1.0.4000\lib\Net35\Iesi.Collections.dll</HintPath>
  45
+    </Reference>
  46
+    <Reference Include="NHibernate">
  47
+      <HintPath>..\packages\NHibernate.3.1.0.4000\lib\Net35\NHibernate.dll</HintPath>
  48
+    </Reference>
  49
+    <Reference Include="NHibernate.ByteCode.Castle">
  50
+      <HintPath>..\packages\NHibernate.Castle.3.1.0.4000\lib\Net35\NHibernate.ByteCode.Castle.dll</HintPath>
  51
+    </Reference>
36 52
     <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
37 53
     <Reference Include="System.Web.WebPages" />
38 54
     <Reference Include="System.Web.Helpers" />
@@ -55,11 +71,19 @@
55 71
     <Reference Include="System.Configuration" />
56 72
     <Reference Include="System.Web.Services" />
57 73
     <Reference Include="System.EnterpriseServices" />
  74
+    <Reference Include="WebActivator">
  75
+      <HintPath>..\packages\WebActivator.1.4\lib\NETFramework40\WebActivator.dll</HintPath>
  76
+    </Reference>
58 77
   </ItemGroup>
59 78
   <ItemGroup>
  79
+    <Compile Include="App_Start\NHibernateProfiler.cs" />
  80
+    <Compile Include="Controllers\HomeController.cs" />
  81
+    <Compile Include="Controllers\SessionController.cs" />
60 82
     <Compile Include="Global.asax.cs">
61 83
       <DependentUpon>Global.asax</DependentUpon>
62 84
     </Compile>
  85
+    <Compile Include="Models\Blog.cs" />
  86
+    <Compile Include="Models\User.cs" />
63 87
     <Compile Include="Properties\AssemblyInfo.cs" />
64 88
   </ItemGroup>
65 89
   <ItemGroup>
@@ -79,6 +103,11 @@
79 103
     <Content Include="Content\themes\base\images\ui-icons_454545_256x240.png" />
80 104
     <Content Include="Content\themes\base\images\ui-icons_888888_256x240.png" />
81 105
     <Content Include="Content\themes\base\images\ui-icons_cd0a0a_256x240.png" />
  106
+    <Content Include="hibernate.cfg.xml">
  107
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  108
+    </Content>
  109
+    <EmbeddedResource Include="Models\Blog.hbm.xml" />
  110
+    <EmbeddedResource Include="Models\User.hbm.xml" />
82 111
     <Content Include="Web.config" />
83 112
     <Content Include="Web.Debug.config">
84 113
       <DependentUpon>Web.config</DependentUpon>
@@ -109,9 +138,9 @@
109 138
     <Content Include="Views\Shared\Error.cshtml" />
110 139
     <Content Include="Views\Shared\_Layout.cshtml" />
111 140
   </ItemGroup>
  141
+  <ItemGroup />
112 142
   <ItemGroup>
113  
-    <Folder Include="Controllers\" />
114  
-    <Folder Include="Models\" />
  143
+    <Content Include="packages.config" />
115 144
   </ItemGroup>
116 145
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
117 146
   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

0 notes on commit 6628d85

Please sign in to comment.
Something went wrong with that request. Please try again.