Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create samples for databinding using EF Core in WPF and WinForms #778

Closed
ajcvickers opened this issue Jun 18, 2018 · 2 comments · Fixed by #3968
Closed

Create samples for databinding using EF Core in WPF and WinForms #778

ajcvickers opened this issue Jun 18, 2018 · 2 comments · Fixed by #3968
Assignees
Milestone

Comments

@ajcvickers
Copy link
Member

Moved from dotnet/efcore#12396 posted by @Int32Overflow

I am facing the task of implementing a large database application in WPF. I have already worked with small WPF database applications.
Unfortunately, I haven't found an example of large WPF EFC applications.

A brief summary of my task:

  • WPF application with MVVM
  • Data with Entity Framework Core 2.1
  • IoC container with Repository pattern
  • Data editors for master data. Simultaneous processing of data in split screens => No global DbContext possible
    • Add data
    • Edit data
      • Save changes
      • Discard changes
    • Delete data

Example MockUp of an data editor

grafik

I start editing "Item 1", then I edit "Item 2" and save "Item 2". I now discard the changes of "Item 1".

How would you design this application?

@ajcvickers ajcvickers changed the title [Question] Best practice WPF Application with EFC Create samples for databinding using EF Core in WPF and WinForms Jun 21, 2018
@ajcvickers ajcvickers added this to the 3.0.0 milestone Jun 21, 2018
@FSharpCSharp
Copy link

Maybe another idea before this example is implemented. How about if the user still had the possibility to create or select the database in the program. This would require even more dynamism and is in the "real" world mostly the order of the day. From my point of view that would make the example really round. Because I haven't seen a real-world scenario where the database is hard-coded in any *.config files or anchored in the program code. Normally everything should be dynamic.

@ajcvickers ajcvickers added this to the 7.0.0 milestone Nov 3, 2021
@ajcvickers
Copy link
Member Author

ajcvickers commented Nov 4, 2021

Update these guides following 7.0 work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants