Skip to content

Commit 9aebdd3

Browse files
author
v-anzha
committed
orm sqlsugar
1 parent b938564 commit 9aebdd3

111 files changed

Lines changed: 24271 additions & 659 deletions

File tree

Some content is hidden

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

Blog.Core.IRepository/Blog.Core.IRepository.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<TargetFramework>netcoreapp2.0</TargetFramework>
55
</PropertyGroup>
66

7+
<ItemGroup>
8+
<ProjectReference Include="..\Blog.Core.Model\Blog.Core.Model.csproj" />
9+
</ItemGroup>
10+
711
</Project>

Blog.Core.IRepository/IAdvertisementRepository.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
using System;
1+
using Blog.Core.Model.Models;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
5+
using System.Linq.Expressions;
46
using System.Text;
57
using System.Threading.Tasks;
68

@@ -10,5 +12,10 @@ public interface IAdvertisementRepository
1012
{
1113
int Sum(int i, int j);
1214

15+
int Add(Advertisement model);
16+
bool Delete(Advertisement model);
17+
bool Update(Advertisement model);
18+
List<Advertisement> Query(Expression<Func<Advertisement, bool>> whereExpression);
19+
1320
}
1421
}

Blog.Core.IRepository/bin/Debug/netcoreapp2.0/Blog.Core.IRepository.deps.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
"targets": {
88
".NETCoreApp,Version=v2.0": {
99
"Blog.Core.IRepository/1.0.0": {
10+
"dependencies": {
11+
"Blog.Core.Model": "1.0.0"
12+
},
1013
"runtime": {
1114
"Blog.Core.IRepository.dll": {}
1215
}
16+
},
17+
"Blog.Core.Model/1.0.0": {
18+
"runtime": {
19+
"Blog.Core.Model.dll": {}
20+
}
1321
}
1422
}
1523
},
@@ -18,6 +26,11 @@
1826
"type": "project",
1927
"serviceable": false,
2028
"sha512": ""
29+
},
30+
"Blog.Core.Model/1.0.0": {
31+
"type": "project",
32+
"serviceable": false,
33+
"sha512": ""
2134
}
2235
}
2336
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)