public Presenter(ModelMapper modelMapper, ForeignKeyWindow window) { _window = window; _modelMapper = modelMapper; _fkType = NewScalar <INamedTypeSymbol>().AddValidator(Extensions.ValidateRequired); _fkName = NewScalar("FK_").AddValidator(Extensions.ValidateRequired).AddValidator(modelMapper.ValidateIdentifier); Show(window._dataView, modelMapper.CreateForeignKeyEntries()); }
private void AddForeignKeyCommand_Execute(object sender, EventArgs e) { Debug.Assert(CanAddCodeSnippet); ForeignKeyWindow.Show(ModelMapper, AddForeignKey); }