示例#1
0
 public virtual void AddSize(Size size)
 {
     Sizes.Add(size);
     size.Product = this;
     DomainEvent.Raise(new SizeCreatedEvent(UrlName, size.Name, size.IsActive));
 }
示例#2
0
 public StockItem(Size size)
 {
     SizeId = size.Id;
     Name = "{0} - {1}".With(size.Product.Name, size.Name);
     IsInStock = size.IsInStock;
 }
示例#3
0
 partial void DeleteSize(Size instance);
示例#4
0
 partial void UpdateSize(Size instance);
示例#5
0
 partial void InsertSize(Size instance);
示例#6
0
		private void detach_Sizes(Size entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
示例#7
0
		private void attach_Sizes(Size entity)
		{
			this.SendPropertyChanging();
			entity.Product = this;
		}