Click here to Skip to main content
15,893,487 members
Articles / Programming Languages / C#

C# DAL Method Code Generator

Rate me:
Please Sign up or sign in to vote.
4.80/5 (11 votes)
19 May 2008CPOL1 min read 75.8K   4.9K   67  
Generates C# data access layer method code for SQL Server stored procedures
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{92B7C87B-092D-4F9E-878B-DAEEF642FA3A}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>CodeGenerator</RootNamespace>
    <AssemblyName>CodeGenerator</AssemblyName>
  </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="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="CodeGenMDI.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="CodeGenMDI.Designer.cs">
      <DependentUpon>CodeGenMDI.cs</DependentUpon>
    </Compile>
    <Compile Include="Custom Controls\DbServerExplorer.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Custom Controls\DbServerExplorer.Designer.cs">
      <DependentUpon>DbServerExplorer.cs</DependentUpon>
    </Compile>
    <Compile Include="Custom Controls\ItemDetailView.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Custom Controls\ItemDetailView.Designer.cs">
      <DependentUpon>ItemDetailView.cs</DependentUpon>
    </Compile>
    <Compile Include="Custom Controls\StatusBar.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Custom Controls\StatusBar.Designer.cs">
      <DependentUpon>StatusBar.cs</DependentUpon>
    </Compile>
    <Compile Include="Custom Controls\StatusView.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Custom Controls\StatusView.Designer.cs">
      <DependentUpon>StatusView.cs</DependentUpon>
    </Compile>
    <Compile Include="frmConnectionExplorer.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmConnectionExplorer.Designer.cs">
      <DependentUpon>frmConnectionExplorer.cs</DependentUpon>
    </Compile>
    <Compile Include="Library\IStoredProc.cs" />
    <Compile Include="Library\SPList.cs" />
    <Compile Include="Library\StoredProcedureParameter.cs" />
    <Compile Include="Library\Util.cs" />
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="CodeGenMDI.resx">
      <SubType>Designer</SubType>
      <DependentUpon>CodeGenMDI.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Custom Controls\DbServerExplorer.resx">
      <DependentUpon>DbServerExplorer.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Custom Controls\ItemDetailView.resx">
      <SubType>Designer</SubType>
      <DependentUpon>ItemDetailView.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Custom Controls\StatusBar.resx">
      <SubType>Designer</SubType>
      <DependentUpon>StatusBar.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Custom Controls\StatusView.resx">
      <SubType>Designer</SubType>
      <DependentUpon>StatusView.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="frmConnectionExplorer.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmConnectionExplorer.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="Library\SQLStoredProcedureHelper.cs" />
    <Compile Include="Library\StoredProcHelper.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\No.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\ArrowNext.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\Cog.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\Cog.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\No.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Images\mnticons-1.9\ArrowNext.png" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\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
Singapore Singapore
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions