12345678910111213141516171819202122232425262728293031323334 |
- using Comal.Classes;
- using InABox.Core;
- using System;
- using System.Collections.Generic;
- using System.Linq.Expressions;
- using System.Text;
- namespace Comal.Classes
- {
-
- public class DataEntryTagDistributionUnionGenerator : AutoEntityUnionGenerator<IDataEntryTagDistributionEmployee>
- {
- protected override void Configure()
- {
- AddTable<DataEntryTagEmployee>();
- AddTable<DataEntryTagRoleEmployee>();
- }
- public override bool Distinct => true;
- public override Column<IDataEntryTagDistributionEmployee>[] IDColumns { get; } = new Column<IDataEntryTagDistributionEmployee>[]
- {
- new Column<IDataEntryTagDistributionEmployee>(x => x.Employee.ID),
- new Column<IDataEntryTagDistributionEmployee>(x => x.Tag.ID)
- };
- }
- [AutoEntity(typeof(DataEntryTagDistributionUnionGenerator))]
- public class DataEntryTagDistributionEmployee : Entity, IRemotable, IPersistent, IDataEntryTagDistributionEmployee, ILicense<DataEntryLicense>
- {
- public EmployeeLink Employee { get; set; }
- public DataEntryTagLink Tag { get; set; }
- }
- }
|