Ejemplo n.º 1
0
 public int Update(TnfNode tnfNode)
 {
     return(Update(new object[]
     {
         tnfNode.Oid,
         tnfNode.Vid,
         tnfNode.NetworkOid?.ToString(),
         tnfNode.Geometry,
         tnfNode.NextFreePortNumber
     }));
 }
Ejemplo n.º 2
0
 public void Add(TnfNode tnfNode)
 {
     Add(new object[]
     {
         tnfNode.Oid,
         tnfNode.Vid,
         tnfNode.NetworkOid?.ToString(),
         tnfNode.Geometry,
         tnfNode.NextFreePortNumber
     });
 }
Ejemplo n.º 3
0
        private TnfNode ReadObject(IDataReader reader)
        {
            var tnfNode = new TnfNode();

            tnfNode.Oid                = reader["oid"].FromDbString();
            tnfNode.Vid                = reader["vid"].FromDbString();
            tnfNode.NetworkOid         = (int)reader["network_oid"].ToInt32();
            tnfNode.NextFreePortNumber = reader["next_free_port_number"].ToInt32();
            var geometry = reader["geometry"];

            if (!(geometry is DBNull))
            {
                tnfNode.Geometry = (byte[])geometry;
            }

            return(tnfNode);
        }