-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIService.snippet
More file actions
58 lines (54 loc) · 1.44 KB
/
IService.snippet
File metadata and controls
58 lines (54 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>IService</Title>
<Shortcut>IService</Shortcut>
<Description>Code snippet for a service interface.</Description>
<Author>jinyafeng</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>Entity</ID>
<ToolTip>entity upper</ToolTip>
<Default>Entity</Default>
</Literal>
<Literal>
<ID>entity</ID>
<ToolTip>entity lower</ToolTip>
<Default>entity</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[public interface I$Entity$Services :IBaseServices<$Entity$>
{
int Sum(int i, int j);
int Add($Entity$ $entity$);
bool Delete($Entity$ $entity$);
bool Update($Entity$ $entity$);
List<$Entity$> Query(Expression<Func<$Entity$, bool>> whereExpression);
}$end$]]>
</Code>
<Imports>
<Import>
<Namespace>Blog.Core.IServices.BASE</Namespace>
</Import>
<Import>
<Namespace>Blog.Core.Model.Models</Namespace>
</Import>
<Import>
<Namespace>System</Namespace>
</Import>
<Import>
<Namespace>System.Collections.Generic</Namespace>
</Import>
<Import>
<Namespace>System.Linq.Expressions</Namespace>
</Import>
</Imports>
</Snippet>
</CodeSnippet>
</CodeSnippets>