小编Jdi*_*ehl的帖子

C# 不一致的可访问性:返回类型的可访问性低于方法

我正在为我的学习开发一个应用程序。现在我刚刚启动了一个应用程序,在那里我得到了一个包含足球联赛和俱乐部等的数据库。现在我有了俱乐部和球员的列表,现在我正在尝试添加更多的联赛,然后只有 1 个。但是当我收到这个错误时做同样的事情然后做之前。这是不工作列表的代码:

public List<Competitie> GetAllCompetities()
        {
            List<Competitie> Competitie = new List<Competitie>();
            using (MySqlConnection connection = new MySqlConnection(connectionString))
            {
                connection.Open();
                string query = "Select * from competitie";
                MySqlCommand selectallcompetitiecommand = new MySqlCommand(query, connection);
                MySqlDataReader reader = selectallcompetitiecommand.ExecuteReader();
                while (reader.Read())
                {
                    Competitie comp = new Competitie();
                    comp.IdCompetitie = reader.GetInt32(0);
                    comp.NaamCompetitie = reader.GetString(1);
                    Competitie.Add(comp);
                }
            }
            return Competitie;
        }
Run Code Online (Sandbox Code Playgroud)

然后这是正在工作的俱乐部的代码:

public List<Clubs> GetAllClubs(string selecteditem)
        { //Zorgt voor alle dingen van de tabel clubs.
            List<Clubs> Clubs = new List<Clubs>();
            using (MySqlConnection connection = …
Run Code Online (Sandbox Code Playgroud)

.net c# access-modifiers

8
推荐指数
1
解决办法
7391
查看次数

将闪亮与facet_grid结合起来

我正在开展一个学校项目,其中有一些 dyplr 查询,我需要使用 Shiny 库使它们交互。现在我在 dyplr 中有一个查询,在那里我可以看到印度外卖餐厅每个国家的收入。我有以下查询:

```
df %>% 
  group_by(Origin, Jaar = year(Order.Date), Maand = month(Order.Date, label = TRUE), Kwartaal = quarter(Order.Date)) %>% 
  summarize(omzet = sum(regelomzet)) %>% 
  ggplot(aes(reorder(Origin, omzet), omzet)) +
  facet_grid(~Jaar) +
  geom_col() +
  ggtitle("Omzet per land van herkomst") +
  coord_flip() +
  theme(axis.text.x = element_text(angle = 90))
```
Run Code Online (Sandbox Code Playgroud)

这给了我以下输出: 在此输入图像描述 现在,如果我将facet_grid更改为例如kwartaal(一年中的季度),我会得到以下输出: 在此输入图像描述 现在我想在交互式 Shiny 应用程序中应用此图。我为此使用以下代码:

```
```{r}
library(shiny)

ui <- fluidPage(
  titlePanel("Indian takeaway"),

  navlistPanel("Kies een plot",
    tabPanel("Omzet per land van herkomst", 
        selectInput(inputId = "Select_unit",
                   label = "Selecteer op …
Run Code Online (Sandbox Code Playgroud)

r ggplot2 shiny facet-grid

0
推荐指数
1
解决办法
1543
查看次数

标签 统计

.net ×1

access-modifiers ×1

c# ×1

facet-grid ×1

ggplot2 ×1

r ×1

shiny ×1