public int Update(TnfNode tnfNode) { return(Update(new object[] { tnfNode.Oid, tnfNode.Vid, tnfNode.NetworkOid?.ToString(), tnfNode.Geometry, tnfNode.NextFreePortNumber })); }
public void Add(TnfNode tnfNode) { Add(new object[] { tnfNode.Oid, tnfNode.Vid, tnfNode.NetworkOid?.ToString(), tnfNode.Geometry, tnfNode.NextFreePortNumber }); }
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); }