예제 #1
0
            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());
            }
예제 #2
0
 private void AddForeignKeyCommand_Execute(object sender, EventArgs e)
 {
     Debug.Assert(CanAddCodeSnippet);
     ForeignKeyWindow.Show(ModelMapper, AddForeignKey);
 }