private EntityCommand AddCommand(string commandName, string description, EntityCommandKind kind, EntityInfo entity, EntityKeyInfo selectKey = null) { var command = new EntityCommand(commandName, description, kind, entity, selectKey); _model.AddCommand(command); return(command); }