示例#1
0
 public static AT CreateAT(User user)
 {
     var constructor = new Constructor();
     constructor.SetCreationDate(new DateTime());
     constructor.SetName("ndatabase");
     constructor.SetDescription("NDatabase");
     var newAt = new AT();
     newAt.SetName("AT1");
     newAt.SetConstructor(constructor);
     newAt.SetCreationDate(new DateTime());
     newAt.SetDeleted(false);
     newAt.SetIpAddress("1.1.1.1");
     newAt.SetPhysicalAddress("A01");
     newAt.SetPort(4000);
     newAt.SetStatus(true);
     newAt.SetType("Type1");
     newAt.SetUpdateDate(new DateTime());
     newAt.SetUser(user);
     return newAt;
 }
示例#2
0
 public virtual void SetConstructor(Constructor constructor)
 {
     this.constructor = constructor;
 }
示例#3
0
文件: PMV.cs 项目: danfma/NDB
 public virtual void SetConstructor(Constructor constructor)
 {
     this.constructor = constructor;
 }