* start to add program schedule alternates * edit days of the week * editor improvements * save changes * build playouts using alternate schedules * reset playout as needed * add priority message
14 lines
389 B
C#
14 lines
389 B
C#
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
|
|
|
namespace ErsatzTV.Infrastructure.Data.Configurations;
|
|
|
|
public class CollectionValueComparer<T> : ValueComparer<ICollection<T>>
|
|
{
|
|
public CollectionValueComparer() : base(
|
|
(c1, c2) => c1.SequenceEqual(c2),
|
|
c => c.Aggregate(0, (a, v) => HashCode.Combine(a, v.GetHashCode())),
|
|
c => c.ToHashSet())
|
|
{
|
|
}
|
|
}
|