コード例 #1
0
        internal void DeleteSelf(Shipper myShipper)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }
            // if we're new then don't update the database
            if (this.IsNew)
            {
                return;
            }
            SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"];

            Order.Remove(cn, _OrderID);
            MarkNew();
        }
コード例 #2
0
 public virtual Shipper Get()
 {
     return(_Editable = Shipper.Get(_ShipperID));
 }