Created
March 22, 2013 15:36
-
-
Save CH3COOH/5222233 to your computer and use it in GitHub Desktop.
WindowsストアアプリでSQLiteを使う場合の例(レシピ069~070)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SQLite; // ←これを追加 | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using Windows.Foundation; | |
using Windows.Foundation.Collections; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; | |
using Windows.UI.Xaml.Data; | |
using Windows.UI.Xaml.Input; | |
using Windows.UI.Xaml.Media; | |
using Windows.UI.Xaml.Navigation; | |
// 空白ページのアイテム テンプレートについては、http://go.microsoft.com/fwlink/?LinkId=234238 を参照してください | |
namespace SQLiteSample | |
{ | |
/// <summary> | |
/// それ自体で使用できる空白ページまたはフレーム内に移動できる空白ページ。 | |
/// </summary> | |
public sealed partial class MainPage : Page | |
{ | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
} | |
/// <summary> | |
/// このページがフレームに表示されるときに呼び出されます。 | |
/// </summary> | |
/// <param name="e">このページにどのように到達したかを説明するイベント データ。Parameter | |
/// プロパティは、通常、ページを構成するために使用します。</param> | |
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
} | |
private void btnCreateDatabase_Click(object sender, RoutedEventArgs e) | |
{ | |
// コネクションの作成 | |
var connection = new SQLiteAsyncConnection("bookstore"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment