Example #1
0
        public static bool TryCreate(IRowVersion rowVersion, out string eTag)
        {
            if (rowVersion == null)
            {
                throw new ArgumentNullException("rowVersion");
            }


            eTag = null;
            if (rowVersion != null)
            {
                eTag = BitHelper.ConvertToHex(rowVersion.RowVersion);
            }
            return(eTag != null);
        }
 public static byte[] EntityVersion(this IUnitOfWork uow, IRowVersion versionedEntity)
 {
     return((byte[])uow.PropertyValue(versionedEntity, EFCore.Version));
 }
 public static void EntityVersion(this IUnitOfWork uow, IRowVersion versionedEntity, byte[] version)
 {
     uow.PropertyValue(versionedEntity, EFCore.Version, version);
 }