Exemple #1
0
        public List <SyncAdapter> GetUserNewVersion(string tableName, long versionId, Guid userId)
        {
            var syncAdapterCommandBuilder = new SyncAdapterCommandBuilder();
            var query = syncAdapterCommandBuilder.GetUserNewVersion(tableName, versionId, userId);

            return(DBManager.GetCollection <SyncAdapter>(this.ConnectionHandler, query));
        }
Exemple #2
0
        public int DeprecateOlderVersion(Guid sourceId)
        {
            var syncAdapterCommandBuilder = new SyncAdapterCommandBuilder();
            var query = syncAdapterCommandBuilder.DeprecateOlderVersion(sourceId);

            return((int)DBManager.ExecuteNonQuery(this.ConnectionHandler, query));
        }
Exemple #3
0
        public int Count(string tableName, string sourceId)
        {
            var syncAdapterCommandBuilder = new SyncAdapterCommandBuilder();
            var query = syncAdapterCommandBuilder.Exist(tableName, sourceId);
            var count = (int)DBManager.ExecuteScalar(this.ConnectionHandler, query);

            return(count);
        }