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(); }
public virtual Shipper Get() { return(_Editable = Shipper.Get(_ShipperID)); }