mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-10-27 11:19:01 +08:00
ru
This commit is contained in:
@@ -5,7 +5,6 @@ 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="模块名称" %>
|
||||
<%@ Property Name="NeedViewModel" Type="Boolean" Category="Context" Default="False" Description="是否需要ViewModel" %>
|
||||
<%@ Map Name="CSharpAlias" Src="System-CSharpAlias" Description="System to C# Type Map" %>
|
||||
<%@ Assembly Name="SchemaExplorer" %>
|
||||
<%@ Import Namespace="SchemaExplorer" %>
|
||||
@@ -73,10 +72,9 @@ namespace OpenAuth.App
|
||||
|
||||
public void Update(<%=ModuleName%> obj)
|
||||
{
|
||||
UnitWork.Update<User>(u => u.Id == obj.Id, u => new User
|
||||
UnitWork.Update<<%=ModuleName%>>(u => u.Id == obj.Id, u => new <%=ModuleName%>
|
||||
{
|
||||
Name = role.Name,
|
||||
Status = role.Status
|
||||
//todo:要修改的
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user