Ejemplo n.º 1
0
        public string BuildFilterSegment(string entityAlias)
        {
            string ret = null;

            string[] segs = EntitySQLFieldRelationItemBase.BuildSQLSegments <EntitySQLFilterItem>(this.Filters, entityAlias);
            if (segs != null)
            {
                ret = String.Join(FILTER_CONDITIONS_SEPERATOR, segs);
            }

            return(ret);
        }
Ejemplo n.º 2
0
        public string BuildSortSegment(string entityAlias)
        {
            string ret = null;

            string[] segs = EntitySQLFieldRelationItemBase.BuildSQLSegments <EntitySQLSortItem>(this.Sorts, entityAlias);
            if (segs != null)
            {
                ret = String.Join(SORT_CONDITIONS_SEPERATOR, segs);
            }

            return(ret);
        }
Ejemplo n.º 3
0
        public string BuildGroupSegment(string entityAlias, out string projection)
        {
            List <EntitySQLGroupItem> groups = this.GetGroupItems();
            string ret = null;

            projection = null;
            if (groups != null)
            {
                string[] segsKey = EntitySQLFieldRelationItemBase.BuildSQLSegments <EntitySQLGroupItem>(groups, entityAlias, false, true);
                if (segsKey != null)
                {
                    ret = String.Join(GROUP_CONDITIONS_SEPERATOR, segsKey);
                }
                string[] segsProjection = EntitySQLFieldRelationItemBase.BuildSQLSegments <EntitySQLGroupItem>(groups, entityAlias, true, false);
                if (segsProjection != null)
                {
                    projection = String.Join(GROUP_CONDITIONS_SEPERATOR, segsProjection);
                }
            }

            return(ret);
        }