예제 #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;
 }