<legend id='nlVQW'><style id='nlVQW'><dir id='nlVQW'><q id='nlVQW'></q></dir></style></legend>

    <small id='nlVQW'></small><noframes id='nlVQW'>

    1. <i id='nlVQW'><tr id='nlVQW'><dt id='nlVQW'><q id='nlVQW'><span id='nlVQW'><b id='nlVQW'><form id='nlVQW'><ins id='nlVQW'></ins><ul id='nlVQW'></ul><sub id='nlVQW'></sub></form><legend id='nlVQW'></legend><bdo id='nlVQW'><pre id='nlVQW'><center id='nlVQW'></center></pre></bdo></b><th id='nlVQW'></th></span></q></dt></tr></i><div id='nlVQW'><tfoot id='nlVQW'></tfoot><dl id='nlVQW'><fieldset id='nlVQW'></fieldset></dl></div>
      <tfoot id='nlVQW'></tfoot>
        <bdo id='nlVQW'></bdo><ul id='nlVQW'></ul>

    2. Xamarin SQLite“这是‘诱饵’"

      时间:2023-06-06
      <tfoot id='SCBDk'></tfoot>
        <bdo id='SCBDk'></bdo><ul id='SCBDk'></ul>
      • <legend id='SCBDk'><style id='SCBDk'><dir id='SCBDk'><q id='SCBDk'></q></dir></style></legend>

        <small id='SCBDk'></small><noframes id='SCBDk'>

            <tbody id='SCBDk'></tbody>

            • <i id='SCBDk'><tr id='SCBDk'><dt id='SCBDk'><q id='SCBDk'><span id='SCBDk'><b id='SCBDk'><form id='SCBDk'><ins id='SCBDk'></ins><ul id='SCBDk'></ul><sub id='SCBDk'></sub></form><legend id='SCBDk'></legend><bdo id='SCBDk'><pre id='SCBDk'><center id='SCBDk'></center></pre></bdo></b><th id='SCBDk'></th></span></q></dt></tr></i><div id='SCBDk'><tfoot id='SCBDk'></tfoot><dl id='SCBDk'><fieldset id='SCBDk'></fieldset></dl></div>

                本文介绍了Xamarin SQLite“这是‘诱饵’"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我按照 this 指南尝试创建 SQLite 数据库以我的项目.但是总是出现同样的错误,完全按照文章的步骤操作.

                I follow this guide trying to create a SQLite database to my proyect. But always got same error, doing the exactly steps of the article.

                    System.Exception: This is the 'bait'.  You probably need to add one of the SQLitePCLRaw.bundle_* nuget packages to your platform project.
                

                推荐答案

                您是否已将 SQLite 包添加到您的所有项目中?您需要将其添加到应用项目以及 PCL 中.

                Have you added the SQLite package to all your projects? You need to add it to the app projects as well as the PCLs.

                这就是错误告诉你的.它使用一种称为诱饵和开关"的技巧,通过它在 PCL 中安装一个具有特定界面的虚拟程序集,并在 Android 和 iOS 应用程序中安装一个具有相同界面的平台特定程序集,该程序集实际上与数据库进行交互.这个想法是您针对 PCL 进行编码,但在运行时使用库的平台特定版本.您可以在 https://web.archive.org/web/20161209075521/http://log.paulbetts.org/the-bait-and-switch-pcl-trick/

                This is what the error is telling you. It uses a trick called 'bait and switch' whereby it installs a dummy assembly in the PCL with a particular interface, and in the Android and iOS apps it installs a platform specific assembly with an identical interface that actually does the interactions with the database. The idea is you code against the PCL, but at run time the platform specific version of the library is used. You can read more about this pattern at https://web.archive.org/web/20161209075521/http://log.paulbetts.org/the-bait-and-switch-pcl-trick/

                但本质上,此错误是告诉您尚未在特定于平台的项目中安装 NuGet 包.

                Essentially though, this error is telling you that you haven't installed the NuGet package in your platform-specific projects.

                这篇关于Xamarin SQLite“这是‘诱饵’"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:WSO2 API Manager 身份验证违反 UNIQUE KEY 约束错误 下一篇:如何使用monotouch以编程方式在sqlite中创建数据库

                相关文章

                最新文章

              • <i id='iRQ6C'><tr id='iRQ6C'><dt id='iRQ6C'><q id='iRQ6C'><span id='iRQ6C'><b id='iRQ6C'><form id='iRQ6C'><ins id='iRQ6C'></ins><ul id='iRQ6C'></ul><sub id='iRQ6C'></sub></form><legend id='iRQ6C'></legend><bdo id='iRQ6C'><pre id='iRQ6C'><center id='iRQ6C'></center></pre></bdo></b><th id='iRQ6C'></th></span></q></dt></tr></i><div id='iRQ6C'><tfoot id='iRQ6C'></tfoot><dl id='iRQ6C'><fieldset id='iRQ6C'></fieldset></dl></div>
              • <legend id='iRQ6C'><style id='iRQ6C'><dir id='iRQ6C'><q id='iRQ6C'></q></dir></style></legend>
                • <bdo id='iRQ6C'></bdo><ul id='iRQ6C'></ul>

                    <small id='iRQ6C'></small><noframes id='iRQ6C'>

                    <tfoot id='iRQ6C'></tfoot>