Ejemplo n.º 1
0
 public int Update(TnfTopologyLevel tnfTopologyLevel)
 {
     return(Update(new object[]
     {
         tnfTopologyLevel.Oid,
         tnfTopologyLevel.NetworkOid,
         tnfTopologyLevel.TopologyLevel,
         tnfTopologyLevel.TopologyLevelDescr
     }));
 }
Ejemplo n.º 2
0
 public void Add(TnfTopologyLevel tnfTopologyLevel)
 {
     Add(new object[]
     {
         tnfTopologyLevel.Oid,
         tnfTopologyLevel.NetworkOid,
         tnfTopologyLevel.TopologyLevel,
         tnfTopologyLevel.TopologyLevelDescr
     });
 }
Ejemplo n.º 3
0
        private static TnfTopologyLevel ReadObject(IDataRecord reader)
        {
            var tnfTopologyLevel = new TnfTopologyLevel();

            tnfTopologyLevel.Oid                = reader["oid"].ToInt();
            tnfTopologyLevel.NetworkOid         = reader.ReadIfExists("network_oid").ToInt32() ?? -1;
            tnfTopologyLevel.TopologyLevel      = reader["topology_level"].FromDbString();
            tnfTopologyLevel.TopologyLevelDescr = reader["topology_level_descr"].FromDbString();

            return(tnfTopologyLevel);
        }