private static TnfSecondaryLrs ReadObject(IDataRecord reader) { var tnfSecondaryLrs = new TnfSecondaryLrs(); tnfSecondaryLrs.Oid = reader["oid"].FromDbString(); tnfSecondaryLrs.Name = reader["name"].FromDbString(); tnfSecondaryLrs.Type = reader["type"].ToInt(); tnfSecondaryLrs.CatalogueOid = reader["catalogue_oid"].ToInt(); tnfSecondaryLrs.PropertyObjectTypeOid = reader["property_object_type_oid"].FromDbString(); tnfSecondaryLrs.AssocReferentPropertyObjectTypeOid = reader["assoc_referent_property_object_type_oid"].ToInt(); tnfSecondaryLrs.Measure1PropertyTypeOid = reader["measure1_property_type_oid"].FromDbString(); tnfSecondaryLrs.Measure2PropertyTypeOid = reader["measure2_property_type_oid"].FromDbString(); tnfSecondaryLrs.WhereClause = reader["where_clause"].FromDbString(); tnfSecondaryLrs.SequencePropertyTypeOid = reader["sequence_property_type_oid"].FromDbString(); tnfSecondaryLrs.OrderDescending = reader["order_descending"].ToInt() > 0; return(tnfSecondaryLrs); }
public int Update(TnfSecondaryLrs tnfSecondaryLrs) { return(Update(new object[] { tnfSecondaryLrs.Oid, tnfSecondaryLrs.Name, tnfSecondaryLrs.Type, tnfSecondaryLrs.CatalogueOid, tnfSecondaryLrs.PropertyObjectTypeOid, tnfSecondaryLrs.AssocReferentPropertyObjectTypeOid, tnfSecondaryLrs.Measure1PropertyTypeOid, tnfSecondaryLrs.Measure2PropertyTypeOid, tnfSecondaryLrs.WhereClause, tnfSecondaryLrs.SequencePropertyTypeOid, tnfSecondaryLrs.OrderDescending })); }