Permalink
Browse files

Adding a simple page showing the current blog

  • Loading branch information...
1 parent 52bb89c commit 6628d85b05d1d14cce535a49caa40c7d7d7d02a4 @ayende committed Mar 29, 2011
Showing with 52 additions and 2 deletions.
  1. +6 −0 CourseSampleApp.sln
  2. +15 −0 CourseSampleApp/Controllers/HomeController.cs
  3. +31 −2 CourseSampleApp/CourseSampleApp.csproj
View
@@ -3,6 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CourseSampleApp", "CourseSampleApp\CourseSampleApp.csproj", "{2EFA9077-030C-4C8D-86A7-B8D5B3632A64}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FBE8DB2C-C746-49F8-A3D5-A9560268DEA6}"
+ ProjectSection(SolutionItems) = preProject
+ ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-configuration.xsd = ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-configuration.xsd
+ ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-mapping.xsd = ..\..\..\..\..\..\Work\Faveo\CorePersistenceWithNHibernate\SharedLibs\nhibernate-mapping.xsd
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -0,0 +1,15 @@
+using System.Web.Mvc;
+using CourseSampleApp.Models;
+
+namespace CourseSampleApp.Controllers
+{
+ public class HomeController : SessionController
+ {
+ public ActionResult Blog(int id)
+ {
+ var blog = Session.Get<Blog>(id);
+
+ return Json(blog, JsonRequestBehavior.AllowGet);
+ }
+ }
+}
@@ -33,6 +33,22 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="Castle.Core">
+ <HintPath>..\packages\Castle.Core.2.5.2\lib\NET35\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="HibernatingRhinos.Profiler.Appender, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c4acf6557bae1384, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\..\..\..\Work\nhprof\build\HibernatingRhinos.Profiler.Appender.dll</HintPath>
+ </Reference>
+ <Reference Include="Iesi.Collections">
+ <HintPath>..\packages\Iesi.Collections.3.1.0.4000\lib\Net35\Iesi.Collections.dll</HintPath>
+ </Reference>
+ <Reference Include="NHibernate">
+ <HintPath>..\packages\NHibernate.3.1.0.4000\lib\Net35\NHibernate.dll</HintPath>
+ </Reference>
+ <Reference Include="NHibernate.ByteCode.Castle">
+ <HintPath>..\packages\NHibernate.Castle.3.1.0.4000\lib\Net35\NHibernate.ByteCode.Castle.dll</HintPath>
+ </Reference>
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.WebPages" />
<Reference Include="System.Web.Helpers" />
@@ -55,11 +71,19 @@
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
+ <Reference Include="WebActivator">
+ <HintPath>..\packages\WebActivator.1.4\lib\NETFramework40\WebActivator.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
+ <Compile Include="App_Start\NHibernateProfiler.cs" />
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="Controllers\SessionController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
+ <Compile Include="Models\Blog.cs" />
+ <Compile Include="Models\User.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
@@ -79,6 +103,11 @@
<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="hibernate.cfg.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <EmbeddedResource Include="Models\Blog.hbm.xml" />
+ <EmbeddedResource Include="Models\User.hbm.xml" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
@@ -109,9 +138,9 @@
<Content Include="Views\Shared\Error.cshtml" />
<Content Include="Views\Shared\_Layout.cshtml" />
</ItemGroup>
+ <ItemGroup />
<ItemGroup>
- <Folder Include="Controllers\" />
- <Folder Include="Models\" />
+ <Content Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

0 comments on commit 6628d85

Please sign in to comment.