示例#1
0
 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);
 }
示例#2
0
 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);
 }