상속: IEntity, IAmOwnedBy
예제 #1
0
 partial void DeleteOrder(Order instance);
예제 #2
0
 partial void InsertOrder(Order instance);
예제 #3
0
 partial void UpdateOrder(Order instance);
예제 #4
0
		private void detach_Orders(Order entity)
		{
			this.SendPropertyChanging();
			entity.User = null;
		}
예제 #5
0
		private void attach_Orders(Order entity)
		{
			this.SendPropertyChanging();
			entity.User = this;
		}
예제 #6
0
		private void detach_Orders1(Order entity)
		{
			this.SendPropertyChanging();
			entity.Contact1 = null;
		}
예제 #7
0
		private void attach_Orders1(Order entity)
		{
			this.SendPropertyChanging();
			entity.Contact1 = this;
		}
예제 #8
0
		public void EnsureCanViewOrder(Order order)
		{
			if (!IsAdministrator) 
			{
				if (order.Basket.UserId != UserId) 
				{
					throw new ApplicationException("You are attempting to view an order that was not created by you");
				}
			}
		}