diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-18 21:05:38 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-18 21:05:38 +0200 |
| commit | 44af6a05f13cff1defd8ef4a01c4ecdbd7833c33 (patch) | |
| tree | 4747a57757f8206bdc97826a9febf1685f0cf341 /Software/Visual_Studio/Tango.BL/Builders | |
| parent | 68916b0c7e3322ff1ca8b45ed789973a23ccac51 (diff) | |
| download | Tango-44af6a05f13cff1defd8ef4a01c4ecdbd7833c33.tar.gz Tango-44af6a05f13cff1defd8ef4a01c4ecdbd7833c33.zip | |
Changed DTO's to include byte[] when generated but mapped by reference.
More improvements to action logs.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Builders')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Builders/ActionLogsCollectionBuilder.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Builders/ActionLogsCollectionBuilder.cs b/Software/Visual_Studio/Tango.BL/Builders/ActionLogsCollectionBuilder.cs new file mode 100644 index 000000000..fecc0c662 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Builders/ActionLogsCollectionBuilder.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using System.Data.Entity; + +namespace Tango.BL.Builders +{ + public class ActionLogsCollectionBuilder : EntityCollectionBuilderBase<ActionLog, ActionLogsCollectionBuilder> + { + public ActionLogsCollectionBuilder(ObservablesContext context) : base(context) + { + + } + + public virtual ActionLogsCollectionBuilder WithUsers() + { + return AddQueryStep(1, (query) => + { + return query.Include(x => x.User).Include(x => x.User != null ? x.User.Contact : null); + }); + } + } +} |
