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