<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=TheOne.OrmLite</id>
	<title>TheOne.OrmLite - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=TheOne.OrmLite"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=TheOne.OrmLite&amp;action=history"/>
	<updated>2026-06-04T09:26:35Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=TheOne.OrmLite&amp;diff=12919&amp;oldid=prev</id>
		<title>2020年5月15日 (金) 01:38にAdministratorによる</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=TheOne.OrmLite&amp;diff=12919&amp;oldid=prev"/>
		<updated>2020-05-15T01:38:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年5月15日 (金) 01:38時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[TheOne.OrmLite]]とは、.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;NET向けのORMである。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[TheOne.OrmLite]]とは、&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;NET]]向けの[[ORM]]である。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 概要 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 概要 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;名称から[[ServiceStack.OrmLite]]の[[フォーク]]品かと思ったが、中身は[[SQLite.NET]]の独自ORMにそっくりな代物であった。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;名称から[[ServiceStack.OrmLite]]の[[フォーク]]品かと思ったが、中身は[[SQLite.NET]]の独自ORMにそっくりな代物であった。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* https://github.com/masterinspire/TheOne.OrmLite&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* https://github.com/masterinspire/TheOne.OrmLite&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://monobook.org/w/index.php?title=TheOne.OrmLite&amp;diff=12918&amp;oldid=prev</id>
		<title>Administrator: ページの作成:「TheOne.OrmLiteとは、.NET向けのORMである。  == 概要 == 名称からServiceStack.OrmLiteのフォーク品かと思ったが、中身はSQLite.NET…」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=TheOne.OrmLite&amp;diff=12918&amp;oldid=prev"/>
		<updated>2020-05-15T01:38:04Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「&lt;a href=&quot;/wiki/TheOne.OrmLite&quot; title=&quot;TheOne.OrmLite&quot;&gt;TheOne.OrmLite&lt;/a&gt;とは、.NET向けのORMである。  == 概要 == 名称から&lt;a href=&quot;/wiki/ServiceStack.OrmLite&quot; class=&quot;mw-redirect&quot; title=&quot;ServiceStack.OrmLite&quot;&gt;ServiceStack.OrmLite&lt;/a&gt;の&lt;a href=&quot;/wiki/%E3%83%95%E3%82%A9%E3%83%BC%E3%82%AF&quot; title=&quot;フォーク&quot;&gt;フォーク&lt;/a&gt;品かと思ったが、中身はSQLite.NET…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[TheOne.OrmLite]]とは、.NET向けのORMである。&lt;br /&gt;
&lt;br /&gt;
== 概要 ==&lt;br /&gt;
名称から[[ServiceStack.OrmLite]]の[[フォーク]]品かと思ったが、中身は[[SQLite.NET]]の独自ORMにそっくりな代物であった。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* https://github.com/masterinspire/TheOne.OrmLite&lt;br /&gt;
&lt;br /&gt;
== 使用例 ==&lt;br /&gt;
軽く試した限りでは[[MySQL]]でも問題なく動作した。&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using TheOne.OrmLite.Core;&lt;br /&gt;
using TheOne.OrmLite.Core.DataAnnotations;&lt;br /&gt;
using TheOne.OrmLite.MySql;&lt;br /&gt;
&lt;br /&gt;
[OrmLiteAlias(&amp;quot;test_table&amp;quot;)]&lt;br /&gt;
class TestTable {&lt;br /&gt;
        [OrmLitePrimaryKey]&lt;br /&gt;
        public string code { get; set; }&lt;br /&gt;
        public string name { get; set; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class Program&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        // MySQLへの接続情報&lt;br /&gt;
        string server = &amp;quot;localhost&amp;quot;;        // MySQLサーバホスト名&lt;br /&gt;
        string user = &amp;quot;root&amp;quot;;           // MySQLユーザ名&lt;br /&gt;
        string pass = &amp;quot;&amp;quot;;           // MySQLパスワード&lt;br /&gt;
        string database = &amp;quot;test&amp;quot;;      // 接続するデータベース名&lt;br /&gt;
        string connectionString = string.Format(&amp;quot;Server={0};Database={1};Uid={2};Pwd={3}&amp;quot;, server, database, user, pass);&lt;br /&gt;
&lt;br /&gt;
        var dbFactory = new OrmLiteConnectionFactory(connectionString, MySqlDialect.Provider);&lt;br /&gt;
        using (var db = dbFactory.Open())&lt;br /&gt;
        {&lt;br /&gt;
            // ヘビーORMのような小難しいマッパーはない。&lt;br /&gt;
            // あるのはCreateTableだけだ。&lt;br /&gt;
            // テーブル定義は一発で決めろ。&lt;br /&gt;
            db.CreateTableIfNotExists&amp;lt;TestTable&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
            // UPSERTもできるぞ。&lt;br /&gt;
            db.Save(new TestTable { code = &amp;quot;hokkaido&amp;quot;, name = &amp;quot;北海道&amp;quot; });&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>