protected void addSpecificPropertiesToField(Metadata.MetaModel.AxTableField axTableField, AxEdt edt) { switch (fieldType) { case FieldType.Enum: Metadata.MetaModel.AxEdtEnum edtEnum = edt as Metadata.MetaModel.AxEdtEnum; Metadata.MetaModel.AxTableFieldEnum fieldEnum = axTableField as Metadata.MetaModel.AxTableFieldEnum; if (edtEnum != null && fieldEnum != null) { fieldEnum.EnumType = edtEnum.EnumType; } break; default: break; } }
protected void addField(Metadata.MetaModel.AxTableField field) { if (this.namedElement is Table) { AxTable axTable = this.MetadataProvider.Tables.Read(this.namedElement.Name); axTable.Fields.Add(field); this.MetadataProvider.Tables.Update(axTable, this.ModelSaveInfo); } else { var extensionName = this.namedElement.Name.Split('.'); AxTableExtension axTableExtension = this.MetadataProvider.TableExtensions.Read(this.namedElement.Name); axTableExtension.Fields.Add(field); this.MetadataProvider.TableExtensions.Update(axTableExtension, this.ModelSaveInfo); } }
protected void addSpecificPropertiesToField(Metadata.MetaModel.AxTableField axTableField) { return; }