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)

24 results in tag: wpf

async-await issue in EF 6

I'm trying async-await programming with entity-framework 6 (code first) + WPF and I can't see why the UI still freezes after I made the code asynchronous. Here is what I'm doing from the very first line:...first there is an event handler responding to a c...
async-await entity-framework entity-framework-6 wpf
asked by Vahid

How to cancel an async query the right way

This is a follow up question to ...this question.......I'm trying to load data from my database which will take 5-10 seconds, but I want the GUI to stay responsive and also it should be cancellable....private CancellationTokenSource _source; public IEnum...
.net c# entity-framework entity-framework-6 wpf
asked by Staeff

WPF and EF6 mark model entity as having chnages

Background:... I have a wpf 4.5 application that is built with MVVM (MVVM-Light) and Enitity Framework 6 db first. ...I have several viewmodels that have a list/details set up with a list of objects in a listbox and a details grid that displays and allow...
.net entity-framework entity-framework-6 vb.net wpf
asked by J King

WPF Automatic binding when an EF's entity values change

I am new to Entity Framework and I'm trying to learn it....I was trying to modify an exercise found on the official documentation: I would like to have a list of fathers and a list of sons. Every son must have a father selected from a combobox menu....Now...
c# data-binding entity-framework entity-framework-core wpf
asked by Enrico Brugnatelli

Binding entity into WPF datagrid with EF 7 (core)

I have a simple problem with data binding. I'm not able to get the datagrid ...DeviceDataGrid... to visualise the entity information. The ...MainWindow.xaml... file is as follows:...<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/pre...
c# data-binding entity-framework-core wpf
asked by ajr

WPF DataGrid binding to an Entity Framework with help of mvvm light

I'm having trouble to be able to bind ...DeviceListDataGrid... to an entity (EF7). The datagrid is not showing any of the data contained by the source. I'm using mvvm-light toolkit....Here's the xaml ...<Window xmlns="http://schemas.microsoft.com/win...
c# datagrid entity-framework-core mvvm-light wpf
asked by ajr

EntityFramework 6.0.0.0 reads data, but it is not inserting

I've created a ...Service-based Database...folderName->Add New Item->Data->Service-based Database... file into WPF application. Then I've used ...Database First... approach and have created the ...PersonsModel.edmx... file. These operations are executed p...
c# entity-framework entity-framework-6 wpf
asked by StepUp

Desktop application which can work offline when no connectivity with SQL Server

I am designing a WPF desktop application and using Entity framework Code First to create and use SQL Server Database. My database will be hosted on One Server machine and will be running 24*7. ...I want to provide a feature, where you can modify data offl...
c# entity-framework entity-framework-6 sql-server wpf
asked by Mini

Error: the entity type requires a primary key

I would like to expand the question asked on this thread...Binding listbox to observablecollection...by giving it an ability to persistent the data. The structure is mostly the same except I installed Entity Framework Core, created a ...DbContext... class...
c# entity-framework-core wpf
asked by user1205746

C# WPF Application with Local Database crashes when used on another computer

I developed a C#/WPF application utilizing Entity Framework 6 to connect to a local MySQL database. The application works perfectly when running on the local computer. However, when I install the application on other systems and run it, it crashes the mom...
c# entity-framework entity-framework-6 mysql wpf
asked by JonTan

EF Core - Disposable DbContext and Attach() - or - DbContext as member - or - Disconnected Entities

I'm not sure about how to correctly use the DbContext for Entities bound to a WPF DataGrid? ...How do I correctly "re-attach" and save changes to the database for all the entities that were loaded to the datagrid during UserControl load? ...I was using a ...
.net c# datagrid entity-framework-core wpf
asked by MarkusEgle

Deploying a WPF application that uses Entity Framework Core

I want to build a WPF app that uses entity framework core so that I can handle SQLite databases....I then do the following, for instance:...Using Visual Studio 2017 (15.5.2), create a WPF application....Open the nuget package manager and install ...Micros...
.net .net-core c# entity-framework-core wpf
asked by johnildergleidisson

Entity Framework Core - Multiple DbContext single database

I have an wpf app + EF Core 2 to access Data (several tables in db) The software is plan to be in 2 or 3 differents "versions" (depending on the business, but will share the same db and the "same ui" with various views). Today the ...DbContext... contains...
c# dbcontext entity-framework entity-framework-core wpf
asked by Teetof

WPF UWP and Entity Framework

What's your opinion?...Should I invest time learning UWP+C# or WPF+C#? ...To me they both look very similar, except the fact that UWP was built to run in Windows 10 devices... In the other hand I'm also reading that UWP is not going so well.......The your...
entity-framework-6 entity-framework-core uwp wpf
asked by J_PT

How to set a property to be "Identity" or auto-incremented column with Entity Framework Core?

In a new WPF project that I am writing using c#, I want to attempt on using ...Entity Framework Core... to interact with my SQL Server database....Every time I try to add model to my context, I get the following error ...Cannot insert explicit value for i...
c# entity-framework entity-framework-core wpf
asked by Junior

Which lifetime-manager do I register my DbContext into Unity container when writing a WPF application?

I am writing a new C# application on the top of ...Prism 6.3... framework using the well-known MVVM design pattern. I am using Unity IoC container to help me manage my dependencies....I am using ...Entity Framework Core... to interact with the database. H...
c# entity-framework-core prism repository wpf
asked by Junior

How to inject .net core EF into WPF application

I would like to inject my .NET Core EntityFramework ...DbContext... (sitting in a .net standard library) into my WPF app....I tried ...this Unity approach...:...OnStartup...var container = new UnityContainer(); container.RegisterType<ApplicationDbContext>...
.net-standard c# entity-framework-core wpf
asked by Bassie

How to use Entity Framework for applications with many clients

I have created an application that manages Hotels, Rooms, Reservations and customers. In the first version I used pure MySQL commands to communicate with the database and worked perfectly but it was quite hard to implement, mostly when I needed to change ...
c# entity-framework entity-framework-6 mysql wpf
asked by Axilleas Kar

Full .NET references .NET Standard class library: FileNotFoundException

I've just created 2 projects with Visual Studio 2019 (16.3.3):...class library (...netstandard2.0...) ...+...Microsoft.EntityFrameworkCore..., Version 2.2.4...+custom ...Repository... class to hide ...DbContext... class...WPF project (...v4.7.1...) ...+...
.net c# entity-framework-core nuget visual-studio
asked by Marcel

Create Viewmodel from Controller / Model. Populate lists from database

I'm working on my first WPF MVVM application. I created a database and wrote queries to fetch album names and song names. Now I want to fill a list in my View with the album names and a second list with corresponding songs. I'm new to c# and WPF. I'd like...
entity-framework entity-framework-6 mvvm viewmodel wpf
asked by S.P.

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!