zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

31 results in tag: uwp

Add-Migration command not working in EF 7 for UWP app

I'm following ...getting started with EF 7 for UWP apps... official tutorial....When I'm at Add-Migration MyFirstMigration, it throws following error:...PM> Add-Migration MyFirstMigration Add-Migration : Exception calling "CreateInstanceAndUnwrap" with "...
entity-framework-core sqlite uwp
asked by Anil

How to use SQLite with Entity Framework 6 on UWP?

I am now developing model classes for Universal Windows Application. Is there any possibility to use EF6 and SQLite together in this project or should I use pre-release of EF7 only?
c# entity-framework entity-framework-6 sqlite uwp
asked by Andrew Sklyar

Where to put SQLite database in UWP app

Current ...Entity Framework Core Documentation... gives an example for using SQLite in a Windows 10 / UWP app. The example given declares the db location with ...optionsBuilder.UseSqlite("Filename=Blogging.db");... The path is equivalent to ...Windows.St...
entity-framework entity-framework-core sqlite uwp
asked by Vague

Critical issue using EF Core on UWP (unable to open database file)

Steps to reproduce...Follow this simple ...tutorial.......The issue...Start the app either in Debug or Release....An exception occurs with ...db.Database.Migrate();.......Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.Data.Sqlite.d...
entity-framework-core uwp windows-10 windows-10-mobile windows-10-universal
asked by Ben

EF Core removerange items not removed on transaction

Here's my prblem...using (var db = new CassaContext()) { var DbSet = db.GetByName(item.Name); DbSet.RemoveRange(DbSet); for (var i = 0; i < data.Count; i++) { JObject jitem = data[i] as JObject; var d...
c# entity-framework entity-framework-core sqlite uwp
asked by thepasto

UWP / EF Core SqlServer - Threading Dependency

I'm attempting to use Microsoft.EntityFrameworkCore.SqlServer, but I appear to not have an appropriate Threading dependency. When using NuGet to attempt to install EF Core SS, I get several messages like the following:...Restoring packages for c:\visual s...
c# entity-framework entity-framework-core sql-server uwp
asked by TRAL

Child collection not updating in EntityFrameworkCore

Consider the following simplified models with nested one-too-many relationship:...public class Report { public Guid ReportId { get; set; } public string Name { get; set; } public List<Schedule> Schedules { get; set; } } public class Schedule ...
.net c# entity-framework-core uwp win-universal-app
asked by Hendra Anggrian

Protect an SQLite database in an UWP app

It is an ...UWP...application using a ...SQLite... database. Below, the dependencies for this application:...{ "dependencies": { "Microsoft.EntityFrameworkCore.Sqlite": "1.0.1", "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final", ...
.net-4.6 c# entity-framework-core uwp
asked by JiBéDoublevé

Is it possible to use Entity Framework Core in Xamarin cross-platform projects?

I'm evaluating Xamarin for a new project that will be targeting different platforms (iOS, Android, UWP)....When I add the NuGet package to my PCL project, I get the following error :...Impossible d’installer le package « Microsoft.EntityFrameworkCore...
entity-framework-core uwp xamarin xamarin.android xamarin.ios
asked by Julien Ferraro

Newtonsoft JSON serialize list in list

I am using a ef core database in my UWP app and have some issues serializing a list containing a list with Newtonsoft JSON....For a minimal example consider the UWP tutorial from ...microsoft... with the following code...public class Blog { public int...
entity-framework-core json.net serialization uwp
asked by user3079834

EntityFrameworkCore for Sqlite not creating __EFMigrationHistory table

Before I explain my issue, I have some experience with entity framework 5 and 6 code first migrations, running ...add-migration.../...update-database... and a few more specific commands from the Package Manager console. All of the migration history was ha...
entity-framework-core sqlite uwp
asked by JonnyKnottsvill

table already exists exception when migrate DB using Entity Framework Core and SQLite

I'm using EF Core and SQLite in UWP. I tried to migrate by calling DbContext.Database.Migrate() but I always get ...Microsoft.Data.Sqlite.SqliteException: 'SQLite Error 1: 'table "Tags" already exists'.'.... ...I'm sure that the table doesn't exist bec...
entity-framework-core sqlite uwp
asked by witoong623

Can Azure Mobile Services Offline Sync be used with Entity Framework Core?

How to use the managed client for Azure Mobile Apps... seems to operate on table entities rather than the POCO classes we use in EF. We have a business application that we are trying to port to UWP. We have complex related data and are used to being able ...
azure-mobile-services entity-framework-core uwp
asked by Vague

EF Core Add a Related Entity (generic repository)

I have the an EF Core Db with the following models and one to many relationship...public class AttributeType { public int AttributeTypeId { get; set; } public string Name { get; set; } public List<Attribute> AttributeList { get; set; } } pub...
c# entity-framework-core uwp
asked by Emiliano Magliocca

Cant run migrations in UWP app

Ive been dealing with this for a few days and Im driving crazy here. I created a uwp project that uses SQLite and EF Core to handle database layer and I had to add more columns to the entities I created at the beginning. I used Code-First approach and I w...
c# entity-framework entity-framework-core sqlite uwp
asked by marsalal1014

Including SQLite DB file with data in the UWP application

I'm trying to include a SQLite file with the UWP application. SQLite file has a number of tables in it populated with data....The database (for now, at least) is read-only and I'm planning to use EF Core to access the data....So i have two questions:...Wh...
entity-framework-core sqlite uwp windows-10
asked by Nick Goloborodko

Config error with EF 2.0, UWP (targeting 16299 and later), and Nuget

I'm currently trying to build a UWP with EF Core, and decided since I saw 2.0 support was coming with the update today to use EF 2.0 with a UWP targeting 16299 and later....I got EF Core working (migrations, etc) for sure, using a sample dotnet core conso...
c# database entity-framework-core sqlite uwp
asked by lmcdo

Missing definition for UseSqlite in DbContextOptionsBuilder class of Microsoft.EntityFrameworkCore.Tool

I'm trying to write a simple phone app using UWP that will insert an image from a Windows folder location into a table on SQLite and view it on the Windows phone....I found this article on technet forum that I am using for a reference:...https://social.te...
entity-framework-core sqlite uwp uwp-xaml windows-10-mobile
asked by M.Ridha

Lifetime of DbContext in Entity Framework Core 2.0 and UWP

I'm currently moving my UWP app from sqlite-net to Entity Framework Core 2.0 with Sqlite as a database provider. What I'm wondering is what lifetime ...DbContext... objects should have. ...I've seen tutorials for Entity Framework and WPF which suggest tha...
entity-framework entity-framework-core uwp
asked by SebastianR

Error using Entity Framework Core with SQL Server on UWP app

I have a data project (.net standard 2.0) with Entity FrameWork Core 2.0.2 and SQL Server, Sqlite and PostgreSql providers....I have more three projects for presentation in Windows Forms, WPF and UWP. ...When I run the Windows Forms and WPF, Entity Framew...
entity-framework-core uwp
asked by Marks

Page 1 of 2
  • 1
  • 2
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!