mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
Add CodeSmith
This commit is contained in:
28
CodeSmith/IRepository.cst
Normal file
28
CodeSmith/IRepository.cst
Normal file
@@ -0,0 +1,28 @@
|
||||
<%--
|
||||
Name: Database Table Properties
|
||||
Author: Paul Welter
|
||||
Description: Create a list of properties from a database table
|
||||
--%>
|
||||
<%@ CodeTemplate Language="C#" Encoding="utf-8" TargetLanguage="C#" Debug="False" Description="创建包含组织机构的接口" %>
|
||||
<%@ Property Name="ModuleName" Type="String" Category="Context" Description="模块名称" %>
|
||||
<%@ Map Name="CSharpAlias" Src="System-CSharpAlias" Description="System to C# Type Map" %>
|
||||
<%@ Assembly Name="SchemaExplorer" %>
|
||||
<%@ Import Namespace="SchemaExplorer" %>
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface I<%=ModuleName%>Repository :IRepository<<%=ModuleName%>>
|
||||
{
|
||||
IEnumerable<<%=ModuleName%>> Load<%=ModuleName%>s(int pageindex, int pagesize);
|
||||
|
||||
IEnumerable<<%=ModuleName%>> LoadInOrgs(params int[] orgId);
|
||||
int Get<%=ModuleName%>CntInOrgs(params int[] orgIds);
|
||||
IEnumerable<<%=ModuleName%>> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
|
||||
|
||||
void Delete(int id);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user