コード例 #1
0
 public static PersonDepartment Normalize(PersonDepartment t, Person p, Department d)
 {
     if (t == null)
         return t;
     if ((t.Person = p) != null)
         t.Person_Id = p.Id;
     if ((t.Department = d) != null)
         t.Department_Id = d.Id;
     return t;
 }
コード例 #2
0
ファイル: Department.cs プロジェクト: airasmartin/Nespe
 public Department Copy(Department src, bool copyId=false)
 {
     var dst=this;
     if (copyId) dst.Id = src.Id;
     dst.SID = src.SID;
     dst.Name = src.Name;
     dst.Description = src.Description;
     dst.Entity = src.Entity;
     dst.EMail = src.EMail;
     dst.Phone = src.Phone;
     dst.Head = src.Head;
     dst.Assistant1 = src.Assistant1;
     dst.Assistant2 = src.Assistant2;
     dst.Assistant3 = src.Assistant3;
     return src;
 }