partial void DeleteStore(Store instance);
partial void UpdateStore(Store instance);
partial void InsertStore(Store instance);
private void detach_Stores(Store entity) { this.SendPropertyChanging(); entity.StoreManager = null; }
private void attach_Stores(Store entity) { this.SendPropertyChanging(); entity.StoreManager = this; }
public bool CreateStore(StoreDAO s) { Store store = new Store { Store_ID = s.StoreID, Location = s.Location, Manager_ID = s.Manager_ID }; using (AESDatabaseDataContext db = new AESDatabaseDataContext()) { db.Stores.InsertOnSubmit(store); try { db.SubmitChanges(); } catch (Exception e) { throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message)); } } return true; }