public SearchTreeNodeHelper(SearchTreeNode srNode, CarType ctType) { this.SearchTreeNodeID = srNode.ID; this.ParentSearchTreeNodeID = srNode.ParentNodeID; this.Text = srNode.Name.Tex_Text; this.CarTypeID = ctType.ID; this.ModelID = ctType.TYP_MOD_ID; }
protected string GetEngineVolume(CarType carType) { if (carType.EngineVolume.HasValue) { return Math.Round((decimal)carType.EngineVolume.Value / 1000m, 1).ToString("0.0"); } else { return String.Empty; } }
partial void DeleteCarType(CarType instance);
private void detach_CarTypes(CarType entity) { this.SendPropertyChanging(); entity.Model = null; }
partial void UpdateCarType(CarType instance);
private void attach_CarTypes(CarType entity) { this.SendPropertyChanging(); entity.Model = this; }
partial void InsertCarType(CarType instance);