public int Update(TnfCatalogue tnfCatalogue) { return(Update(new object[] { tnfCatalogue.Oid, tnfCatalogue.Name, tnfCatalogue.Version, tnfCatalogue.DefinitionSource, tnfCatalogue.Description, })); }
public void Add(TnfCatalogue tnfCatalogue) { Add(new object[] { tnfCatalogue.Oid, tnfCatalogue.Name, tnfCatalogue.Version, tnfCatalogue.DefinitionSource, tnfCatalogue.Description }); }
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); }