RepositoryInstanceTKey, TValueAddOrUpdate Method |
Adds or updates the entity T with key TK
Namespace:
Crosser.Common.Utilities.Persistence
Assembly:
Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax public TValue AddOrUpdate(
TKey key,
TValue entity
)
Parameters
- key
- Type: TKey
the generic key to use - entity
- Type: TValue
the generic entity to add or update
Return Value
Type:
TValuethe generic entity that was added/updated
See Also