public int Update($$$TableName$$$Entity entity) { if (entity.Files != null && entity.Files.Count > 0) { entity.Files.ForEach(x => { x.InDate = DateTime.Now; x.InUser = WebContext.LoginUser.UserName; x.FSysNo = entity.SysNo; }); } return $$$TableName$$$Facade.Update$$$TableName$$$(entity); }
public int Insert($$$TableName$$$Entity entity) { entity.InDate = DateTime.Now; entity.InUser = WebContext.LoginUser.UserName; if (entity.Files != null && entity.Files.Count > 0) { entity.Files.ForEach(x => { x.InDate = DateTime.Now; x.InUser = WebContext.LoginUser.UserName; }); } return $$$TableName$$$Facade.Insert$$$TableName$$$(entity); }