Click here to Skip to main content
15,885,985 members
Articles / Web Development / HTML

Signum Framework Tutorials Part 2 – Southwind Logic

Rate me:
Please Sign up or sign in to vote.
4.45/5 (6 votes)
15 Nov 2012LGPL325 min read 31.3K   1K   22  
In this part, we will focus on writing business logic, LINQ queries and explain inheritance
<?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>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{61898D02-521F-49AB-928B-F80615D55CA3}</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>Signum.Web</RootNamespace>
    <AssemblyName>Signum.Web</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>SignumFramework.pfx</AssemblyOriginatorKeyFile>
    <MvcBuildViews>false</MvcBuildViews>
    <UseIISExpress>false</UseIISExpress>
  </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>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
  </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>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System.Activities" />
    <Reference Include="System.IdentityModel" />
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.ServiceModel" />
    <Reference Include="System.ServiceModel.Activation" />
    <Reference Include="System.ServiceModel.Activities" />
    <Reference Include="System.ServiceModel.Web" />
    <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll</HintPath>
    </Reference>
    <Reference Include="System.Web.WebPages" />
    <Reference Include="System.Web.Helpers" />
    <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.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <Reference Include="System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.WorkflowServices" />
    <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="..\Signum.Utilities\Properties\Version.cs">
      <Link>Properties\Version.cs</Link>
    </Compile>
    <Compile Include="ButtonBar\ButtonBar.cs" />
    <Compile Include="HtmlHelpers\CalendarHelper.cs" />
    <Compile Include="Common.cs" />
    <Compile Include="Facades\Constructor.cs" />
    <Compile Include="HtmlHelpers\PagerExtensions.cs" />
    <Compile Include="HtmlHelpers\ScriptHtmlHelper.cs" />
    <Compile Include="ButtonBar\ContextualItem.cs" />
    <Compile Include="ControllerAttributes\ExecutionContextAttribute.cs" />
    <Compile Include="ControllerAttributes\SignumExceptionHandlerAttribute.cs" />
    <Compile Include="ControllerAttributes\AuthenticationRequiredAttribute.cs" />
    <Compile Include="MimeTypes.cs" />
    <Compile Include="PortableAreas\ActionFilterConfig.cs" />
    <Compile Include="PortableAreas\CompiledViews.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="PortableAreas\Repositories\CalendarLocalizedJavaScriptRepository.cs" />
    <Compile Include="PortableAreas\FileRepositoryManager.cs" />
    <Compile Include="PortableAreas\CompiledRazorBuildProvider.cs" />
    <Compile Include="PortableAreas\CompiledVirtualPathProvider.cs" />
    <Compile Include="PortableAreas\SignumControllerFactory.cs" />
    <Compile Include="PortableAreas\StaticContentResult.cs" />
    <Compile Include="ButtonBar\ToolBarMenu.cs" />
    <Compile Include="HtmlHelpers\HtmlTag.cs" />
    <Compile Include="JSRenderer\JsFunction.cs" />
    <Compile Include="JSRenderer\JsOptions.cs" />
    <Compile Include="Lines\EntityListBase.cs" />
    <Compile Include="PortableAreas\Repositories\EmbeddedFilesRespository.cs" />
    <Compile Include="PortableAreas\Repositories\LocalizedJavaScriptRepository.cs" />
    <Compile Include="PreApplicationStartCode.cs" />
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Signum\Controllers\ResourcesController.cs" />
    <Compile Include="Signum\Controllers\ModelBinders.cs" />
    <Compile Include="Signum\Controllers\SignumController.cs" />
    <Compile Include="Signum\Controllers\WidgetsController.cs" />
    <Compile Include="Lines\ValueLine.cs" />
    <Compile Include="Mappings\Mapping.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="Mappings\MappingContext.cs" />
    <Compile Include="ModelStateExtensions.cs" />
    <Compile Include="ButtonBar\ToolBarButton.cs" />
    <Compile Include="Signum\Views\ChooserPopup.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>ChooserPopup.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\Error.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Error.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\FilterBuilder.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>FilterBuilder.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\NormalControl.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>NormalControl.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\NormalPage.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>NormalPage.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\PopupControl.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>PopupControl.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\PopupOkControl1.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>PopupOkControl.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\SearchControl.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>SearchControl.cshtml</DependentUpon>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Compile>
    <Compile Include="Signum\Views\SearchPopupControl.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>SearchPopupControl.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\SearchResults.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>SearchResults.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\SearchPage.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>SearchPage.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\ValueLineBox.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>ValueLineBox.cshtml</DependentUpon>
    </Compile>
    <Compile Include="Signum\Views\Widgets\Alert.cs">
      <DependentUpon>Alert.cshtml</DependentUpon>
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
    </Compile>
    <Compile Include="Signum\Views\Widgets\Note.cs">
      <DependentUpon>Note.cshtml</DependentUpon>
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
    </Compile>
    <Compile Include="Signum\Views\_ViewStart.cs">
      <DependentUpon>_ViewStart.cshtml</DependentUpon>
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
    </Compile>
    <Compile Include="TypeContext\TypeContext.cs" />
    <Compile Include="TypeContext\TypeContextExpression.cs" />
    <Compile Include="TypeContext\TypeContextHelper.cs" />
    <Compile Include="TypeContext\TypeContextUtilities.cs" />
    <Compile Include="Signum\Models\ValueLineBoxModel.cs" />
    <Compile Include="LineHelpers\EntityInfo.cs" />
    <Compile Include="JSRenderer\JsValidatorOptions.cs" />
    <Compile Include="JSRenderer\JsFindOptions.cs" />
    <Compile Include="JSRenderer\JsViewOptions.cs" />
    <Compile Include="Lines\BaseLine.cs" />
    <Compile Include="Lines\EntityRepeater.cs" />
    <Compile Include="Lines\EntityListDetail.cs" />
    <Compile Include="Lines\EntityList.cs" />
    <Compile Include="Lines\EntityLineDetail.cs" />
    <Compile Include="Lines\EntityCombo.cs" />
    <Compile Include="LineHelpers\EntityBaseHelper.cs" />
    <Compile Include="Lines\EntityLine.cs" />
    <Compile Include="LineHelpers\ListBaseHelper.cs" />
    <Compile Include="LineHelpers\EntityListDetailHelper.cs" />
    <Compile Include="LineHelpers\EntityLineDetailHelper.cs" />
    <Compile Include="LineHelpers\EmbeddedControlHelper.cs" />
    <Compile Include="Facades\FindOptionsModelBinder.cs" />
    <Compile Include="JSRenderer\JsRenderer.cs" />
    <Compile Include="Widgets\AlertWidgetHelper.cs" />
    <Compile Include="Widgets\AlertsClient.cs" />
    <Compile Include="Widgets\NotesClient.cs" />
    <Compile Include="Widgets\QuickLinkWidgetHelper.cs" />
    <Compile Include="Widgets\NoteWidgetHelper.cs" />
    <Compile Include="Widgets\WidgetsHelper.cs" />
    <Compile Include="HtmlHelpers\MenuHelper.cs" />
    <Compile Include="LineHelpers\LightEntityLineHelper.cs" />
    <Compile Include="LineHelpers\EntityRepeaterHelper.cs" />
    <Compile Include="LineHelpers\EntityComboHelper.cs" />
    <Compile Include="Lines\EntityBase.cs" />
    <Compile Include="LineHelpers\EntityLineHelper.cs" />
    <Compile Include="LineHelpers\EntityListHelper.cs" />
    <Compile Include="Facades\EntitySettings.cs" />
    <Compile Include="Facades\FindOptions.cs" />
    <Compile Include="HtmlHelpers\HtmlHelpers.cs" />
    <Compile Include="Facades\Navigator.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Facades\QuerySettings.cs" />
    <Compile Include="HtmlHelpers\SearchControlHelper.cs" />
    <Compile Include="HtmlHelpers\GenericRouteHelper.cs" />
    <Compile Include="LineHelpers\ValueLineHelper.cs" />
    <Compile Include="ViewDataKeys.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Signum\Views\PopupOkControl.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>PopupOkControl1.cs</LastGenOutput>
    </Content>
    <None Include="Signum\Views\SearchResults.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>SearchResults.cs</LastGenOutput>
    </None>
    <None Include="Signum\Views\FilterBuilder.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>FilterBuilder.cs</LastGenOutput>
    </None>
    <Content Include="Signum\Content\SF_Widgets.css" />
    <Content Include="Signum\Scripts\SF_Widgets.js" />
    <Content Include="Signum\Views\SearchControl.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>SearchControl.cs</LastGenOutput>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
    <None Include="Signum\Views\SearchPage.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>SearchPage.cs</LastGenOutput>
    </None>
    <None Include="Signum\Views\ChooserPopup.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>ChooserPopup.cs</LastGenOutput>
    </None>
    <None Include="Signum\Views\PopupControl.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>PopupControl.cs</LastGenOutput>
    </None>
    <None Include="Signum\Views\NormalPage.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>NormalPage.cs</LastGenOutput>
    </None>
    <Content Include="Signum\Content\reset.css" />
    <Content Include="Signum\Content\SF_Lines.css" />
    <Content Include="Signum\Content\SF_NormalPage.css" />
    <Content Include="Signum\Content\SF_Notify.css" />
    <Content Include="Signum\Content\SF_Search.css" />
    <Content Include="Signum\Scripts\SF_Slider.js" />
    <Content Include="Signum\Views\_ViewStart.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>_ViewStart.cs</LastGenOutput>
    </Content>
    <Content Include="Signum\Images\calendar.png" />
    <Content Include="Signum\Scripts\SF_Utils.js" />
    <Content Include="Signum\Views\Widgets\Note.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>Note.cs</LastGenOutput>
    </Content>
    <Content Include="Signum\Views\Widgets\Alert.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>Alert.cs</LastGenOutput>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <None Include="SignumFramework.pfx" />
    <Content Include="Web.config" />
    <Content Include="Signum\Views\Web.config" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Signum.Engine\Signum.Engine.csproj">
      <Project>{7F2DB6FE-C109-4057-B207-C62A767F905D}</Project>
      <Name>Signum.Engine</Name>
    </ProjectReference>
    <ProjectReference Include="..\Signum.Entities\Signum.Entities.csproj">
      <Project>{F2B51D08-498D-4C9F-8112-9521A7762B02}</Project>
      <Name>Signum.Entities</Name>
    </ProjectReference>
    <ProjectReference Include="..\Signum.Utilities\Signum.Utilities.csproj">
      <Project>{F7D3F72D-741D-4F67-8CF8-CD41B9035FED}</Project>
      <Name>Signum.Utilities</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Signum\Scripts\SF_Globals.js" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Signum\Images\asc.gif" />
    <Content Include="Signum\Images\desc.gif" />
    <Content Include="Signum\Images\lineButtons.gif" />
    <Content Include="Signum\Images\sign_error.gif" />
    <Content Include="Signum\Scripts\SF_jquery-ui-datepicker-extension.js" />
    <None Include="Signum\Views\NormalControl.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>NormalControl.cs</LastGenOutput>
    </None>
    <None Include="Signum\Views\ValueLineBox.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>ValueLineBox.cs</LastGenOutput>
    </None>
    <Content Include="Signum\Scripts\SF_FindNavigator.js" />
    <Content Include="Signum\Scripts\SF_Lines.js" />
    <Content Include="Signum\Scripts\SF_Popup.js" />
    <Content Include="Signum\Scripts\SF_Validator.js" />
    <Content Include="Signum\Scripts\SF_ViewNavigator.js" />
    <None Include="Signum\Views\Error.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>Error.cs</LastGenOutput>
    </None>
    <EmbeddedResource Include="Properties\Resources.es.resx">
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.fr.resx" />
    <EmbeddedResource Include="Properties\Resources.it.resx" />
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <None Include="Signum\Views\SearchPopupControl.cshtml">
      <Generator>MvcRazorClassGenerator</Generator>
      <LastGenOutput>SearchPopupControl.cs</LastGenOutput>
    </None>
    <EmbeddedResource Include="Properties\Resources.de.resx" />
    <EmbeddedResource Include="Properties\Resources.pt.resx" />
  </ItemGroup>
  <ItemGroup />
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  <Target Name="BeforeBuild">
    <ItemGroup>
      <EmbeddedResource Include="**\*.gif;**\*.png;**\*.jpg;**\*.css;**\*.js" />
    </ItemGroup>
  </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>7518</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>True</UseCustomServer>
          <CustomServerUrl>http://google.com</CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior) Signum Software
Spain Spain
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.

www.signumframework.com

I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...

Comments and Discussions