Ejemplo n.º 1
0
 public IList<UserNodeRight> SelectAll()
 {
     var result = new List<UserNodeRight>();
     var dt = SqlDbAccess.GetInstance().GetTable("select * from TUserNodes00001");
     foreach (DataRow dr in dt.Rows)
     {
         var data = new UserNodeRight();
         data.FromDataRow(dr);
         result.Add(data);
     }
     return result;
 }
Ejemplo n.º 2
0
 private Node CreateNode(UserNodeRight right)
 {
     var node = new Node();
     node.Id = right.Id;
     node.NodeId = right.Idx.ToString();
     node.Name = right.Name;
     node.Type = right.Type.ToString();
     node.DBHostIdx = right.DBHostIdx;
     return node;
 }