protected override void InitializeComplexProperties(EntityProduct model) { if (model.EntityProductEntityTypeData == null) { throw new ArgumentException("EntityProductEntityTypeData cannot be null"); } EntityProductEntityTypeData = new EntityTypeWrapper(model.EntityProductEntityTypeData); RegisterComplex(EntityProductEntityTypeData); if (model.ProductTypeData == null) { throw new ArgumentException("ProductTypeData cannot be null"); } ProductTypeData = new ProductTypeWrapper(model.ProductTypeData); RegisterComplex(ProductTypeData); }
protected override void InitializeComplexProperties(EntityAttribute model) { if (model.EntityTypeData == null) { throw new ArgumentException("EntityTypeData cannot be null"); } EntityTypeData = new EntityTypeWrapper(model.EntityTypeData); RegisterComplex(EntityTypeData); if (model.AttributeTypeData == null) { throw new ArgumentException("AttributeTypeData cannot be null"); } AttributeTypeData = new AttributeTypeWrapper(model.AttributeTypeData); RegisterComplex(AttributeTypeData); }