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

Entity Framework 6 - Knowledge Base (KB)

18 results in tag: mvvm

Repository Pattern with Entity Framework 3.5 and MVVM - Should I share the same context everywhere?

I am developing a ...Database File System.... I am using - ....Net framework 3.5 ...Entity Framework 3.5...WPF with MVVM pattern...The project spans across multiple assemblies each using same model....One assembly,let's call it a "server", only adds data ...
c# entity-framework mvvm repository-pattern wpf
asked by Pale Blue Dot

Entity Framework CTP5 Code First, WPF - MVVM modeling

I have my model all setup for my WPF application and working with entity framework ctp5 code first, here's a sample model class:...public class Task { public int ID { get; set; } public int Index { get; set; } public string Content { get; set;...
code-first ef-code-first entity-framework mvvm wpf
asked by Chris Klepeis

MVVM - Bind directly to Model object exposed from VM or implement a separate property in VM to access the Model properties

Sorry if the title is confusing but I don't really know how to shorten my question. Anyway, here it goes....I'm using WPF, Entity Framework and MVVM....Currently, in my ViewModel, I have a property...public Model.Document Document {get;set;} //Model.Docum...
entity-framework mvvm wpf
asked by Gilles Radrizzi

ViewModel and Singleton Pattern

I have one ...ViewModel... for enums handling (few entities in Entity Framework)....1) Philosophically, is it a good practice to use a SINGLETON PATTERN for this ViewModel, because it's widespread over all application and it's used on many places....2) Is...
.net c# entity-framework mvvm
asked by Cartesius00

Do I need to implement INotifyPropertyChanged when using EF Code-First?

I'm noticing that when using EF CodeFirst, and binding my UI to an ...ObservableCollection<T>... via the ...DBSet.Local... property recommended ...here..., that the UI will update when entities are added to the DBContext but not when they are modified....
ef-code-first entity-framework mvvm observablecollection
asked by dpeterson

Displaying Entities in TreeView using MVVM

I am making a WPF application following MVVM pattern. In this i am using entity framework,...my entity structure is simple, it has 3 entities: department, course, books,...a department can have many courses, and a course can have many books,...now i want ...
c# entity-framework mvvm wpf
asked by fhnaseer

WPF Programming Methodology

In my APP I'm using an API of a software that my tool is managing. I've DAL that contain 16 classes, 3 of them are singletons. I've some logic in the ....cs... files and ...XAML...'s off course. ...My question is, I see a lot of comments that an app writt...
.net-4.5 entity-framework mvvm wpf
asked by SigmaOmega

Implementing the MVVM Pattern with Entity Framework - Add Removing

I'm trying to implement the MVVM Pattern on my WPF project that uses Entity Framework to get / manipulates data. I'm confused, i want to know where validating changes on my collections of model objects to database should be??? my application is as follow...
c# entity-framework mvvm wpf
asked by Mohtaa

How can I change an Entity Framework ICollection to be an ObservableCollection?

So I'm pretty far down the rabbit hole of using the Entity Framework designer to make an EDMX that serves as the model in an MVVM project. I've just come across an issue where I'm pretty sure that the ...ICollection<>... that was code generated (see below...
c# entity-framework mvvm
asked by Bob

Entity Framework 6: Clone object except ID

In my MVVM program I have a Model class (say ...MyModel...) from which I have an instance of reading from the database (using Entity Framework). When retrieving the object I'm presenting all the data to the user. Later on the user will be modifying some f...
c# entity-framework entity-framework-6 mvvm
asked by QuantumHive

wpf checkbox binding inside listview

I have 2 classes generated by Entity Framework as follows. My requirement is depending on the SystemEntity_ID in the JobEntity class, I want to bind the IsChecked property of the checkbox in the listview. The problem is right now all the checkboxes are be...
c# entity-framework-6 mvvm wpf xaml
asked by nikhil

Entity vs Model vs View Model

I just spent some time reading about this terms (I don't use them that much since we don't have any MVC applications and I usually just say "model"), but I have the feeling these means different things depending on the context:...Entity...This is quite si...
asp.net-mvc c# entity-framework mvvm
asked by Matthias Müller

Entity Framework async call blocking UI thread

I have been slowly trying to convert my code from using action delegates to the new Tasks in my WPF application. I like the fact that an await operation can run in the same method, greatly reducing the number of methods I need, enhancing readability, and ...
async-await entity-framework-6 mvvm mvvm-light wpf
asked by Pedro Franceschi

Are there two kinds of ViewModels in MVVM Light?

Many people advice WPF MVVM developers to not expose Model instances from the ViewModel to the View. To display the information from a collection of Model instances, wrap all individual items into ViewModel instances and expose a collection of ViewModels ...
c# entity-framework-6 mvvm mvvm-light wpf
asked by Andre

How to convert LINQ query data to WPF/MVVM List

I have two entities:... public class Transport { [Key] public int TransportID {get; set;} public string Model { get; set; } public string Brand { get; set; } } public class TransportOwner { [Key] ...
c# devexpress-wpf entity-framework-6 linq mvvm
asked by Songaila

No connection string named 'x' found in application config file... but it works?

I've seen several different questions relating to this error but none seem to be quite what I'm experiencing. I just followed a simple, one project tutorial on CodeProject.com to get a better understanding of using the MVVM pattern and Entity Framework (....
c# entity-framework-6 mvvm wpf xaml
asked by Gaax

WPF app with static DbContext in ViewModel

I'm developing WPF application using MVVM, Code-First and the repository pattern. I need to have a background task, which processes webserver requests from clients and saves new data into database....The problem is each ViewModel has a property (Observabl...
c# dbcontext entity-framework-6 mvvm wpf
asked by dRaiNe

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 1
  • 1

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
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!