Browse Source

Update demo

pull/2/MERGE
sunkaixuna 3 years ago
parent
commit
ebe6694ee5
  1. 6
      Src/Asp.Net/ExtensionsDemo/ExtensionsDemo.csproj
  2. 3
      Src/Asp.Net/ExtensionsDemo/app.config
  3. 5
      Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs
  4. 3
      Src/Asp.Net/SqlSugar.DbFirstExtensions/SqlSugar.DbFirstExtensions.csproj
  5. 3
      Src/Asp.Net/SqlSugar.Extensions.DataCache/SqlSugar.Extensions.DataCache.csproj

6
Src/Asp.Net/ExtensionsDemo/ExtensionsDemo.csproj

@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ExtensionsDemo</RootNamespace>
<AssemblyName>ExtensionsDemo</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -64,6 +65,9 @@
<Name>SqlSugar</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</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.

3
Src/Asp.Net/ExtensionsDemo/app.config

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>

5
Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

@ -295,7 +295,10 @@ namespace OrmTest
db.Insertable(new Tree() { Id = 222, Name = "child11", ParentId = 11 }).ExecuteCommand();
var tree = db.Queryable<Tree>().ToTree(it=>it.Child,it=>it.ParentId,0);
var tree = db.Queryable<Tree>().ToTree(it => it.Child, it => it.ParentId, 0);
var allchilds= db.Queryable<Tree>().ToChildList(it => it.ParentId, 0);
var allchilds1 = db.Queryable<Tree>().ToChildList(it => it.ParentId, 1);
var allchilds2= db.Queryable<Tree>().ToChildList(it => it.ParentId, 2);
var parentList = db.Queryable<Tree>().ToParentList(it => it.ParentId, 22);
var parentList2 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 222);
var parentList3 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 2);

3
Src/Asp.Net/SqlSugar.DbFirstExtensions/SqlSugar.DbFirstExtensions.csproj

@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SqlSugar.DbFirstExtensions</RootNamespace>
<AssemblyName>SqlSugar.DbFirstExtensions</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

3
Src/Asp.Net/SqlSugar.Extensions.DataCache/SqlSugar.Extensions.DataCache.csproj

@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SqlSugar.Extensions.Cache</RootNamespace>
<AssemblyName>SqlSugar.Extensions.Cache</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

Loading…
Cancel
Save