IDataProvider dataProvider = DataProviderManager.GetDataProvider(DataProviderType.SqlServer);
bool isCreatedDatabase = dataProvider.ConnectionStringExistsByEFCore();
if (!isCreatedDatabase)
{
    return new MessageModel<bool> { Fail = true, Msg = "当前程序中不存在数据库连接字符串", Code = 500 };
}
isCreatedDatabase = await dataProvider.DatabaseExistsByEFCoreAsync();
if (!isCreatedDatabase)
{
    isCreatedDatabase = await dataProvider.InitializeDatabaseByEFCoreAsync();
}
</bool>