C# Data Connections Best Practice?

后端 未结 2 465
攒了一身酷
攒了一身酷 2020-12-01 02:29

Ok, so this is one of those kind of opinionated topics, but based on your knowledge, opinion, and current practice, what is the best way to set the following scenario up?

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 02:37

    I think it's better to just open them upon the application launching, since you need stuff from your database right?I'm not an expert in this, it's just my opinion... I programmed some similar applications and made the connection at the start of the main form. The only form where i created a separate connection was the login form.

提交回复
热议问题