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

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

        <legend id='oe58S'><style id='oe58S'><dir id='oe58S'><q id='oe58S'></q></dir></style></legend>
          <bdo id='oe58S'></bdo><ul id='oe58S'></ul>

        如何使用monotouch以编程方式在sqlite中创建数据库

        时间:2023-06-06
          <bdo id='MmW0u'></bdo><ul id='MmW0u'></ul>
        • <small id='MmW0u'></small><noframes id='MmW0u'>

                <legend id='MmW0u'><style id='MmW0u'><dir id='MmW0u'><q id='MmW0u'></q></dir></style></legend>
                  <tbody id='MmW0u'></tbody>

                  <tfoot id='MmW0u'></tfoot>

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

                2. 本文介绍了如何使用monotouch以编程方式在sqlite中创建数据库和表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  任何机构都可以帮助我,如何使用monotouch在sqlite中以编程方式创建简单的数据库和表并插入值,一步一步的过程.我是这项技术的新手.谢谢..

                  Can any body help me about, how to create simple database and tables programatically and insert values ,step by step procedure in sqlite using monotouch.I am new to this technology . Thank you..

                  推荐答案

                  如果您使用的是 sqlite-net(我强烈推荐)你可以简单地调用:

                  If you're using sqlite-net (which I highly recommend) you can simply call:

                  public class Stock
                  {
                          [PrimaryKey, AutoIncrement]
                          public int Id { get; set; }
                          [MaxLength(8)]
                          public string Symbol { get; set; }
                  }
                  

                  创建

                  var db = new SQLiteConnection("stocks.db");
                  db.CreateTable<Stock>();
                  

                  插入

                  var s = db.Insert(new Stock() {
                  Symbol = symbol });
                  

                  查询

                  return db.Query("select * from Valuation where StockId = ?", stock.Id);

                  Query

                  return db.Query ("select * from Valuation where StockId = ?", stock.Id);

                  这篇关于如何使用monotouch以编程方式在sqlite中创建数据库和表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Xamarin SQLite“这是‘诱饵’" 下一篇:一起使用 XAMPP 和 Mysql Workbench

                  相关文章

                  最新文章

                3. <legend id='qK7pn'><style id='qK7pn'><dir id='qK7pn'><q id='qK7pn'></q></dir></style></legend>

                4. <small id='qK7pn'></small><noframes id='qK7pn'>

                  <tfoot id='qK7pn'></tfoot>

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