コード例 #1
0
 public int Update(TnfCatalogue tnfCatalogue)
 {
     return(Update(new object[]
     {
         tnfCatalogue.Oid,
         tnfCatalogue.Name,
         tnfCatalogue.Version,
         tnfCatalogue.DefinitionSource,
         tnfCatalogue.Description,
     }));
 }
コード例 #2
0
 public void Add(TnfCatalogue tnfCatalogue)
 {
     Add(new object[]
     {
         tnfCatalogue.Oid,
         tnfCatalogue.Name,
         tnfCatalogue.Version,
         tnfCatalogue.DefinitionSource,
         tnfCatalogue.Description
     });
 }
コード例 #3
0
        private static TnfCatalogue ReadObject(IDataRecord reader)
        {
            var tnfCatalogue = new TnfCatalogue();

            tnfCatalogue.Oid              = reader["oid"].ToInt();
            tnfCatalogue.Name             = reader["name"].FromDbString();
            tnfCatalogue.Version          = reader["version"].FromDbString();
            tnfCatalogue.DefinitionSource = reader["definition_source"].FromDbString();
            tnfCatalogue.Description      = reader.ReadIfExists("description").FromDbString();

            return(tnfCatalogue);
        }