コード例 #1
0
 public static void Create(AppDb context, IpNet i)
 {
     i.IdStr      = Utility.Rand(16);
     i.DateCreate = DateTime.Now;
     i.DateUpdate = DateTime.Now;
     context.IpNets.Add(i);
 }
コード例 #2
0
 public static void Update(IpNet o, IpNet n)
 {
     o.DateUpdate = DateTime.Now;
     o.NetWork    = n.NetWork;
     o.Ip         = n.Ip;
     o.Aport      = n.Aport;
     o.Tport      = n.Tport;
 }