private bool UpdateOldType(bool validateOnly, bool originalTypeDataExists, out string errorMessage) { errorMessage = ""; _newDataTypeDescriptor = CreateUpdatedDataTypeDescriptor(); try { new DataTypeChangeDescriptor(_oldDataTypeDescriptor, _newDataTypeDescriptor, originalTypeDataExists); } catch (Exception ex) { errorMessage = ex.Message; return(false); } if (validateOnly) { return(true); } GeneratedTypesFacade.UpdateType(new UpdateDataTypeDescriptor(_oldDataTypeDescriptor, _newDataTypeDescriptor, originalTypeDataExists)); return(true); }
private void CreateNewType() { _newDataTypeDescriptor = CreateNewDataTypeDescriptor(); GeneratedTypesFacade.GenerateNewType(_newDataTypeDescriptor); }