https://github.com/djaus2/proponchange
Demonstrate C# Class Async OnPrpoertyChanged
https://github.com/djaus2/proponchange
Last synced: 10 months ago
JSON representation
Demonstrate C# Class Async OnPrpoertyChanged
- Host: GitHub
- URL: https://github.com/djaus2/proponchange
- Owner: djaus2
- Created: 2021-07-18T01:37:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T14:20:04.000Z (almost 5 years ago)
- Last Synced: 2025-04-23T18:19:28.450Z (about 1 year ago)
- Language: C#
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# PropOnChange
Demonstates how to use a C# Class **OnPropertyChanged** to get around issue where a property Set requires an async call, especially to a database such as with Entity Framework Core. Project is a simple Console app that _simulates_ the async wait requirement by having a method that has a dsely that requires awaiting.
This is discussed in detail on the blog site at [Blazor Helpers App: 7. Async EF calls from an Entity Property](https://davidjones.sportronics.com.au/blazor/Blazor_Helpers_App-Async_EF_calls-blazor.html)
# Running the app
1. Clone the repository
1. Build and run from Visual Studio
2. OR Run from VS Code
3. OR from a Command Line
- Open the local folder in a Terminal Window _(Right-click in File Explorer)_
- ```dotnet run```
2. Run the Notebook from VS Code
- Just get the [Notebook.dib](https://github.com/djaus2/PropOnChange/blob/master/Notebook.dib) file from the repository
- Set up VS Code for [.NET Interactive Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode)
- Run the app ```Run All```