示例#1
0
 public int Update(TnfPropertyObject tnfPropertyObject)
 {
     return(Update(new object[]
     {
         tnfPropertyObject.Oid,
         tnfPropertyObject.CatalogueOid,
         tnfPropertyObject.PropertyObjectTypeOid,
         tnfPropertyObject.Vid
     }));
 }
示例#2
0
 public void Add(TnfPropertyObject tnfPropertyObject)
 {
     Add(new object[]
     {
         tnfPropertyObject.Oid,
         tnfPropertyObject.CatalogueOid,
         tnfPropertyObject.PropertyObjectTypeOid,
         tnfPropertyObject.Vid
     });
 }
示例#3
0
        private static TnfPropertyObject ReadPropertyObject(IDataRecord reader)
        {
            var tnfPropertyObject = new TnfPropertyObject();

            tnfPropertyObject.Oid                   = reader["oid"].FromDbString();
            tnfPropertyObject.CatalogueOid          = reader["catalogue_oid"].ToInt();
            tnfPropertyObject.PropertyObjectTypeOid = reader["property_object_type_oid"].ToInt();
            tnfPropertyObject.Vid                   = reader["vid"].FromDbString();

            return(tnfPropertyObject);
        }