Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
/ examples Public archive

Commit 9c6bda2

Browse files
authored
Windows Host example updated to linq2db 3.6 (#19)
* example updated to 3.6 * converterd to SDK style
1 parent 395e518 commit 9c6bda2

File tree

80 files changed

+113
-10132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+113
-10132
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages/*.*
Lines changed: 25 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,38 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{87BCCF94-E214-46E4-A00B-ED2174587A14}</ProjectGuid>
4+
<TargetFramework>net4.5.2</TargetFramework>
5+
<LangVersion>Latest</LangVersion>
86
<OutputType>Exe</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>Client</RootNamespace>
11-
<AssemblyName>Client</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
157
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<PlatformTarget>AnyCPU</PlatformTarget>
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="linq2db, Version=1.0.7.3, Culture=neutral, PublicKeyToken=f19f8aed7feff67e, processorArchitecture=MSIL">
37-
<HintPath>..\packages\linq2db.1.0.7.3\lib\net45\linq2db.dll</HintPath>
38-
<Private>True</Private>
39-
</Reference>
40-
<Reference Include="System" />
41-
<Reference Include="System.Core" />
42-
<Reference Include="System.Runtime.Serialization" />
43-
<Reference Include="System.ServiceModel" />
44-
<Reference Include="System.Xml.Linq" />
45-
<Reference Include="System.Data.DataSetExtensions" />
46-
<Reference Include="Microsoft.CSharp" />
47-
<Reference Include="System.Data" />
48-
<Reference Include="System.Net.Http" />
49-
<Reference Include="System.Xml" />
50-
</ItemGroup>
51-
<ItemGroup>
52-
<Compile Include="Northwind.generated.cs">
53-
<AutoGen>True</AutoGen>
54-
<DesignTime>True</DesignTime>
55-
<DependentUpon>Northwind.tt</DependentUpon>
56-
</Compile>
57-
<Compile Include="Program.cs" />
58-
<Compile Include="Properties\AssemblyInfo.cs" />
59-
</ItemGroup>
8+
609
<ItemGroup>
61-
<None Include="App.config" />
62-
<None Include="LinqToDB.Templates\DataAnnotations.ttinclude" />
63-
<None Include="LinqToDB.Templates\DataModel.ttinclude" />
64-
<None Include="LinqToDB.Templates\EditableObject.ttinclude" />
65-
<None Include="LinqToDB.Templates\LinqToDB.Access.ttinclude" />
66-
<None Include="LinqToDB.Templates\LinqToDB.DB2.ttinclude" />
67-
<None Include="LinqToDB.Templates\LinqToDB.Firebird.ttinclude" />
68-
<None Include="LinqToDB.Templates\LinqToDB.Informix.ttinclude" />
69-
<None Include="LinqToDB.Templates\LinqToDB.MySql.ttinclude" />
70-
<None Include="LinqToDB.Templates\LinqToDB.Oracle.ttinclude" />
71-
<None Include="LinqToDB.Templates\LinqToDB.PostgreSQL.ttinclude" />
72-
<None Include="LinqToDB.Templates\LinqToDB.SqlCe.ttinclude" />
73-
<None Include="LinqToDB.Templates\LinqToDB.SQLite.ttinclude" />
74-
<None Include="LinqToDB.Templates\LinqToDB.SqlServer.SqlTypes.Tools.ttinclude" />
75-
<None Include="LinqToDB.Templates\LinqToDB.SqlServer.SqlTypes.ttinclude" />
76-
<None Include="LinqToDB.Templates\LinqToDB.SqlServer.Tools.ttinclude" />
77-
<None Include="LinqToDB.Templates\LinqToDB.SqlServer.ttinclude" />
78-
<None Include="LinqToDB.Templates\LinqToDB.Sybase.ttinclude" />
79-
<None Include="LinqToDB.Templates\LinqToDB.Tools.ttinclude" />
80-
<None Include="LinqToDB.Templates\LinqToDB.ttinclude" />
81-
<None Include="LinqToDB.Templates\NotifyPropertyChanged.ttinclude" />
82-
<None Include="LinqToDB.Templates\PluralizationService.ttinclude" />
83-
<None Include="LinqToDB.Templates\ReadMe.LinqToDB.md" />
84-
<None Include="LinqToDB.Templates\T4Model.ttinclude" />
85-
<None Include="LinqToDB.Templates\Validation.ttinclude" />
86-
<None Include="packages.config" />
10+
<PackageReference Include="linq2db" Version="3.6.0" />
11+
<PackageReference Include="linq2db.SqlServer" Version="3.6.0" />
12+
<PackageReference Include="linq2db.t4models" Version="3.6.0" />
8713
</ItemGroup>
14+
8815
<ItemGroup>
89-
<Content Include="LinqToDB.Templates\CopyMe.SqlServer.tt.txt" />
9016
<Content Include="Northwind.tt">
9117
<Generator>TextTemplatingFileGenerator</Generator>
9218
<LastGenOutput>Northwind.generated.cs</LastGenOutput>
9319
</Content>
9420
</ItemGroup>
21+
22+
<ItemGroup>
23+
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
24+
</ItemGroup>
25+
26+
<ItemGroup>
27+
<Reference Include="System.ServiceModel" />
28+
</ItemGroup>
29+
9530
<ItemGroup>
96-
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
31+
<Compile Update="Northwind.generated.cs">
32+
<DesignTime>True</DesignTime>
33+
<AutoGen>True</AutoGen>
34+
<DependentUpon>Northwind.tt</DependentUpon>
35+
</Compile>
9736
</ItemGroup>
98-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
99-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
100-
Other similar extension points exist, see Microsoft.Common.targets.
101-
<Target Name="BeforeBuild">
102-
</Target>
103-
<Target Name="AfterBuild">
104-
</Target>
105-
-->
106-
</Project>
37+
38+
</Project>

LinqOverWCF/Windows Host/Client/LinqToDB.Templates/CopyMe.SqlServer.tt.txt

Lines changed: 0 additions & 54 deletions
This file was deleted.

LinqOverWCF/Windows Host/Client/LinqToDB.Templates/DataAnnotations.ttinclude

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)