mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update demo
This commit is contained in:
parent
e3e12d2e41
commit
ebe6694ee5
@ -9,9 +9,10 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>ExtensionsDemo</RootNamespace>
|
<RootNamespace>ExtensionsDemo</RootNamespace>
|
||||||
<AssemblyName>ExtensionsDemo</AssemblyName>
|
<AssemblyName>ExtensionsDemo</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@ -64,6 +65,9 @@
|
|||||||
<Name>SqlSugar</Name>
|
<Name>SqlSugar</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- 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.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
3
Src/Asp.Net/ExtensionsDemo/app.config
Normal file
3
Src/Asp.Net/ExtensionsDemo/app.config
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>
|
@ -295,7 +295,10 @@ namespace OrmTest
|
|||||||
|
|
||||||
|
|
||||||
db.Insertable(new Tree() { Id = 222, Name = "child11", ParentId = 11 }).ExecuteCommand();
|
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 parentList = db.Queryable<Tree>().ToParentList(it => it.ParentId, 22);
|
||||||
var parentList2 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 222);
|
var parentList2 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 222);
|
||||||
var parentList3 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 2);
|
var parentList3 = db.Queryable<Tree>().ToParentList(it => it.ParentId, 2);
|
||||||
|
@ -9,9 +9,10 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>SqlSugar.DbFirstExtensions</RootNamespace>
|
<RootNamespace>SqlSugar.DbFirstExtensions</RootNamespace>
|
||||||
<AssemblyName>SqlSugar.DbFirstExtensions</AssemblyName>
|
<AssemblyName>SqlSugar.DbFirstExtensions</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -9,8 +9,9 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>SqlSugar.Extensions.Cache</RootNamespace>
|
<RootNamespace>SqlSugar.Extensions.Cache</RootNamespace>
|
||||||
<AssemblyName>SqlSugar.Extensions.Cache</AssemblyName>
|
<AssemblyName>SqlSugar.Extensions.Cache</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
Loading…
Reference in New Issue
Block a user