An open API service indexing awesome lists of open source software.

https://github.com/arnab-developer/add-edit-delete-efcore

Save disconnected object with EF Core
https://github.com/arnab-developer/add-edit-delete-efcore

Last synced: 3 months ago
JSON representation

Save disconnected object with EF Core

Awesome Lists containing this project

README

        

# Add edit delete with EF Core.

Save disconnected object with EF Core. The `AddEditDelete` method checks the object status and based
on that it create, update or remove from database. It uses EF Core to check the status of the object.

```csharp
private static void AddEditDelete(Order order)
{
// code here...
}
```

In `Main` the `AddEditDelete` is called to do different work. For different work different region
has been created.

* Initial create
* Add order items
* Remove order items
* Work with place
* Delete