public void DeleteCollectionPoint(CollectionPoint collectionPoint)
        {
            try
            {
                CollectionPoint persistedCollectionPoint
                    = (from c in context.CollectionPoints
                       where c.CollectionPointID == collectionPoint.CollectionPointID
                       select c).First<CollectionPoint>();

                using (TransactionScope ts = new TransactionScope())
                {
                    context.CollectionPoints.DeleteObject(persistedCollectionPoint);
                    context.SaveChanges();
                    ts.Complete();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
 public void DeleteCollectionPoint(CollectionPoint collectionPoint)
 {
     udao.DeleteCollectionPoint(collectionPoint);
 }
 public CollectionPoint CreateCollectionPoint(CollectionPoint collectionPoint)
 {
     return udao.CreateCollectionPoint(collectionPoint);
 }
 public CollectionPoint UpdateCollectionPoint(CollectionPoint collectionPoint)
 {
     return udao.UpdateCollectionPoint(collectionPoint);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CollectionPoints EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCollectionPoints(CollectionPoint collectionPoint)
 {
     base.AddObject("CollectionPoints", collectionPoint);
 }
 /// <summary>
 /// Create a new CollectionPoint object.
 /// </summary>
 /// <param name="collectionPointID">Initial value of the CollectionPointID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static CollectionPoint CreateCollectionPoint(global::System.Int32 collectionPointID, global::System.String name)
 {
     CollectionPoint collectionPoint = new CollectionPoint();
     collectionPoint.CollectionPointID = collectionPointID;
     collectionPoint.Name = name;
     return collectionPoint;
 }