Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » ADO.NET » Downloads
 
Add your own
alternative version

Entity Framework in WinForms

, 28 Jul 2014
A component that makes it easy to use Entity Framework in WinForms projects, including design-time binding support.
EF5WinForms.zip
EF5Winforms
EF5WinForms
Design
EntityBindingNavigator.png
EntityDataSource.png
Properties
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample
BusinessLogic
Model1.edmx
Model1.edmx.diagram
NORTHWND.MDF
NORTHWND_log.ldf
Properties
Settings.settings
Sample.csproj.user
EF6Winforms.zip
EF6Winforms
EF6WinForms
Design
EntityBindingNavigator.png
EntityDataSource.png
Properties
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample
BusinessLogic
Model1.edmx
Model1.edmx.diagram
NORTHWND.MDF
NORTHWND_log.ldf
Properties
Settings.settings
Sample.csproj.user
efwinforms.zip
EFWinForms
EFWinForms
Design
EntityBindingNavigator.png
EntityDataSource.png
Properties
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample
BusinessLogic
Forms
Model1.edmx
NORTHWND.MDF
NORTHWND_log.ldf
Properties
DataSources
NORTHWNDEntities.datasource
NORTHWNDEntities1.datasource
Product.datasource
Settings.settings
Resources
Cancel1_small.png
Cancel2_small.png
ChartArea_small.png
Chart_small.png
FirstRecord_small.png
LastRecord_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample.suo
efwinforms_vb.zip
EFWinForms_VB
EFWinForms
EFWinForms.vbproj.user
My Project
Settings.settings
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample
Model1.edmx
My Project
Application.myapp
DataSources
northwndEntities.datasource
Settings.settings
northwnd.mdf
northwnd_log.ldf
Sample.vbproj.user
Sample.suo
sample.zip
Sample
EFWinForms
Design
EntityBindingNavigator.png
EntityDataSource.png
Properties
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
Sample
BusinessLogic
Model1.edmx
NORTHWND.MDF
NORTHWND_log.ldf
Properties
DataSources
NORTHWNDEntities.datasource
NORTHWNDEntities1.datasource
Product.datasource
licenses.licx
Settings.settings
Resources
Cancel1_small.png
Cancel2_small.png
ChartArea_small.png
Chart_small.png
FirstRecord_small.png
LastRecord_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
separateconcerns.zip
SeparateConcerns
DataLayer
DataLayer.csproj.user
Model1.edmx
Properties
Settings.settings
EFWinForms
Design
EntityBindingNavigator.png
EntityDataSource.png
Properties
Resources
Cancel2_small.png
FirstRecord_small.png
LastRecord_small.png
NewItem_small.png
NextRecord_small.png
PreviousRecord_small.png
Refresh_small.png
Save_small.png
Undo_small.png
SampleApplication
Properties
DataSources
SeparateConcerns.DataSource.datasource
Settings.settings
SeparateConcerns.suo
<?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)' == '' ">x86</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{9F8F6EA2-0548-4000-A210-85278F70BE0D}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>SampleApplication</RootNamespace>
    <AssemblyName>SampleApplication</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    <PlatformTarget>x86</PlatformTarget>
    <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|x86' ">
    <PlatformTarget>x86</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <DebugType>full</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <CodeAnalysisLogFile>bin\Debug\SampleApplication.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <Optimize>true</Optimize>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <CodeAnalysisLogFile>bin\Release\SampleApplication.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <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="Form1.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Form1.Designer.cs">
      <DependentUpon>Form1.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="Form1.resx">
      <DependentUpon>Form1.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\DataSources\SeparateConcerns.DataSource.datasource" />
    <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>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\DataLayer\DataLayer.csproj">
      <Project>{15FBD64F-A9F1-4A35-8B14-E4CA446EBF23}</Project>
      <Name>DataLayer</Name>
    </ProjectReference>
  </ItemGroup>
  <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)

About the Author

Bernardo Castilho
Chief Technology Officer ComponentOne
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 28 Jul 2014
Article Copyright 2011 by Bernardo Castilho
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid