routine update

This commit is contained in:
yubao
2018-03-17 23:04:19 +08:00
parent 0667c04a40
commit f3bc5fbfa5
6 changed files with 47 additions and 29 deletions

View File

@@ -33,6 +33,11 @@ namespace OpenAuth.App
Repository.Delete(u => ids.Contains(u.Id));
}
public T Get(string id)
{
return Repository.FindSingle(u => u.Id == id);
}
/// <summary>
/// 如果一个类有层级结构(树状),则修改该节点时,要修改该节点的所有子节点
/// //修改对象的级联ID生成类似XXX.XXX.X.XX

View File

@@ -13,14 +13,6 @@ namespace OpenAuth.App
public class FlowSchemeApp :BaseApp<FlowScheme>
{
public FlowScheme GetEntity(string keyValue)
{
return UnitWork.FindSingle<FlowScheme>(u => u.Id == keyValue);
}
public void UpdateState(string keyValue, int state)
{
throw new NotImplementedException();