Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Xamarin with Entity Framework Core

580 vues

Publié le

Fukuoka.NET #9 material:
This is the material written about Xamarin with Entity Framework Core.

Changed url of sample codes on Github.com
https://github.com/tafuji/Xamarin-EFCore-1.1.5

Publié dans : Technologie
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici

Xamarin with Entity Framework Core

  1. 1. https://docs.microsoft.com/ja-jp/ef/core/platforms/
  2. 2. Runtime Error が出て無理だった… http://bit.ly/2EBsusV
  3. 3. Category を追加 Database Item Table Database Item Table Category Table Data Migration
  4. 4. https://github.com/tafuji/Xamarin-EFCore https://docs.microsoft.com/en-us/ef/core/ https://blog.xamarin.com/building-android-apps-with-entity-framework/ http://miaw.xyz/b/post/2017/08/03/xamarin-native-tutorial-invoiceje-sqlite- database
  5. 5. [Key] [Column("text")] Data Annotation Attributes Key: Primary key Column: Column name
  6. 6. DbContext DbSet<Item> OnConfiguring UseSqlite
  7. 7. • Database を作成できるパスが Platform で異なる • パスを取得する処理を Native で実装 • DependencyService 等で Native の取得 処理を呼び出す
  8. 8. https://docs.microsoft.com/en-US/ef/core/providers/sqlite/limitations
  9. 9. DotNetCliToolReference • プロジェクトをアンロード • プロジェクトファイルに上 記の DotNetCliToolReference の記述を追加
  10. 10. DbContext を含む プロジェクト Migration 名
  11. 11. DbContext OnConfiguring UseSqlite ConnectionString Migration Tool 実行時に接続文字列がないとこ こで例外が発生し、コードの生成に失敗する デフォルトコンストラクタで ダミーの接続文字列を作成 アプリケーションのコードか らは、接続文字列を引数とす るコンストラクタを利用する
  12. 12. context.Database.Migrate
  13. 13.   Linking の構成なし アプリケーションのサイズが大きくなる
  14. 14.  Category Table  Seed Data
  15. 15. [DatabaseGenerated(DatabaseGeneratedOption.Identity)] Data Annotation 自動生成列
  16. 16. DbContext DbSet<Category> 既存の DbContext にEntity を追加

×