diff options
| author | mo khan <mo@mokhan.ca> | 2009-10-23 13:09:04 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2009-10-23 13:09:04 -0600 |
| commit | 9a3430b2a1f0445c0dbac703907762e225383421 (patch) | |
| tree | 751d5742a199eae57ebb6d767e650bd6c803bdc3 /product/database/transactions/SaveOrUpdateFromDatabase.cs | |
| parent | f76fe6ca01f3dc5fabc8bf16f299420ba9d7ef05 (diff) | |
renamed some components to something that is more descriptive.main
Diffstat (limited to 'product/database/transactions/SaveOrUpdateFromDatabase.cs')
| -rw-r--r-- | product/database/transactions/SaveOrUpdateFromDatabase.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/product/database/transactions/SaveOrUpdateFromDatabase.cs b/product/database/transactions/SaveOrUpdateFromDatabase.cs new file mode 100644 index 0000000..c8babda --- /dev/null +++ b/product/database/transactions/SaveOrUpdateFromDatabase.cs @@ -0,0 +1,20 @@ +using System; +using gorilla.commons.utility; + +namespace momoney.database.transactions +{ + public class SaveOrUpdateFromDatabase<T> : DatabaseCommand where T : Identifiable<Guid> + { + readonly T entity; + + public SaveOrUpdateFromDatabase(T entity) + { + this.entity = entity; + } + + public void run(DatabaseConnection connection) + { + connection.store(entity); + } + } +}
\ No newline at end of file |
