Click here to Skip to main content
15,886,110 members
Articles / Database Development / SQL Server / SQL Server 2008

Architecture Guide: Windows Forms, Generics, Auto-Mapper, Entity Framework, Framework Design, and many more..

Rate me:
Please Sign up or sign in to vote.
4.93/5 (39 votes)
12 Dec 2013CPOL15 min read 141.2K   3.8K   175  
Architecting a Windows Forms based system on top of a framework. This will help you develop a form based application faster.
<?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.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{061E13D1-3DE9-415C-95C6-283BE021F540}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Demo.Core</RootNamespace>
    <AssemblyName>Demo.Core</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <SccProjectName>
    </SccProjectName>
    <SccLocalPath>
    </SccLocalPath>
    <SccAuxPath>
    </SccAuxPath>
    <SccProvider>
    </SccProvider>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
    <OldToolsVersion>3.5</OldToolsVersion>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <TargetFrameworkProfile />
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </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="AutoMapper, Version=1.1.0.188, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Libraries\AutoMapper.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.Entity" />
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="HandlerGroup.cs" />
    <Compile Include="HandlerGroupType.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="HandlerLocation.cs" />
    <Compile Include="HandlerMachine.cs" />
    <Compile Include="HandlerMachineGroup.cs" />
    <Compile Include="HandlerMaterial.cs" />
    <Compile Include="HandlerMaterialGroup.cs" />
    <Compile Include="HandlerRaptorUser.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="HandlerRaptorUserGroup.cs" />
    <Compile Include="HandlerReaderPacket.cs" />
    <Compile Include="HandlerTag.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="HandlerTrackingPoint.cs" />
    <Compile Include="HandlerTrackingPointGroup.cs" />
    <Compile Include="HandlerUserStatusType.cs" />
    <Compile Include="HandlerWorkerGroup.cs" />
    <Compile Include="Models\ApplicationUserGroupView.cs" />
    <Compile Include="Models\ApplicationUserView.cs" />
    <Compile Include="Models\ComboView.cs" />
    <Compile Include="Models\CustomerView.cs" />
    <Compile Include="Models\Enum.cs" />
    <Compile Include="Models\EnumHelper.cs" />
    <Compile Include="Models\GroupTypeView.cs" />
    <Compile Include="Models\GroupView.cs" />
    <Compile Include="HandlerApplicationUser.cs" />
    <Compile Include="HandlerApplicationUserGroup.cs" />
    <Compile Include="HandlerCustomer.cs" />
    <Compile Include="HandlerTagType.cs" />
    <Compile Include="Models\LocationView.cs" />
    <Compile Include="Models\MachineGroupView.cs" />
    <Compile Include="Models\MachineView.cs" />
    <Compile Include="Models\MaterialGroupView.cs" />
    <Compile Include="Models\MaterialView.cs" />
    <Compile Include="Models\RaptorUserGroupView.cs" />
    <Compile Include="Models\ReaderPacketView.cs" />
    <Compile Include="Models\TagTypeView.cs" />
    <Compile Include="Models\TrackingPointGroupView.cs" />
    <Compile Include="Models\TrackingPointView.cs" />
    <Compile Include="Models\UserStatusTypeView.cs" />
    <Compile Include="Models\UserView.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Models\RaptorUserView.cs" />
    <Compile Include="Models\TagView.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Libraries\AutoMapper.dll" />
    <Content Include="Libraries\EmitMapper.dll" />
    <Content Include="Libraries\ICSharpCode.SharpZipLib.dll" />
    <Content Include="Libraries\log4net.dll" />
    <Content Include="Libraries\MonthCalendar.dll" />
    <Content Include="Libraries\PopupControl.dll" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
      <Visible>False</Visible>
      <ProductName>Windows Installer 3.1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <ItemGroup>
    <None Include="Demo.Core.cd" />
    <None Include="Properties\DataSources\Raptor.Core.Models.GroupView.datasource" />
    <None Include="Properties\DataSources\Raptor.Core.Models.MeterialView.datasource" />
    <None Include="Properties\DataSources\Raptor.Core.Models.WorkerGroupView.datasource" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Demo.Data\Demo.Data.csproj">
      <Project>{8AF47952-AB25-4ACA-AC00-01E576F63F1B}</Project>
      <Name>Demo.Data</Name>
    </ProjectReference>
    <ProjectReference Include="..\Demo.Framework\Demo.Framework.csproj">
      <Project>{A4839F2A-B33F-4B92-9074-5FF264C52F34}</Project>
      <Name>Demo.Framework</Name>
    </ProjectReference>
  </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>

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 Code Project Open License (CPOL)


Written By
Architect Virtusa Pvt. Ltd.
Sri Lanka Sri Lanka
In-depth coverage of Microsoft .Net, Cloud and many other cutting-edge Technologies.

- The Mandelbrot set – someone has called it the thumb-print of God – is one of the most beautiful and remarkable discoveries in the entire history of mathematics. My profile picture is generated with that equation.

You may contact Nirosh for Consultations, Code Reviews and Architecture Guide Workshops via c_nir*o*sh@hotmail.com (Remove * to use)



View Nirosh L.W.C.'s profile on LinkedIn


Other Links

Comments and Discussions