16 lines
397 B
C#
16 lines
397 B
C#
using BeWo.Data.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Data.Utils
|
|
{
|
|
public static class BeWoEntityExtension
|
|
{
|
|
public static Dictionary<long, long> ToOidVersionDictionary(this IEnumerable<BeWoEntityBase> entities)
|
|
=> entities.ToDictionary(x => x.Oid.Value, x => x.Version.Value);
|
|
}
|
|
}
|