예제 #1
0
 public void DeleteVan(long vanId)
 {
     using (IDataAccessAdapter myAdapter = PersistenceLayer.GetDataAccessAdapter())
     {
         IRelationPredicateBucket bucket = new RelationPredicateBucket(VanDetailsFields.VanId == vanId);
         if (myAdapter.DeleteEntitiesDirectly(typeof(VanDetailsEntity), bucket) == 0)
         {
             throw new PersistenceFailureException();
         }
     }
 }