/// <summary>
        ///     Retuns a linq expression to compare the specific Entity handled by the repositor
        ///     to the version in the last sync
        /// </summary>
        /// <param name="lastSync"></param>
        /// <returns></returns>
        public virtual Func <T, bool> GetVersionPredicate(DataSync lastSync)
        {
            var query =
                new Func <T, bool>(
                    v =>
                    AppUtility.IsHigherVersion(v.Version, lastSync.RowVersion));

            return(query);
        }