コード例 #1
0
 partial void DeleteStore(Store instance);
コード例 #2
0
 partial void UpdateStore(Store instance);
コード例 #3
0
 partial void InsertStore(Store instance);
コード例 #4
0
		private void detach_Stores(Store entity)
		{
			this.SendPropertyChanging();
			entity.StoreManager = null;
		}
コード例 #5
0
		private void attach_Stores(Store entity)
		{
			this.SendPropertyChanging();
			entity.StoreManager = this;
		}
コード例 #6
0
        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;
        }