Ejemplo n.º 1
0
        protected SqlQuery BuildAnQuery(DQL command, object args = null)
        {
            this.QueryString = new StringBuilder("{command} {what} FROM {table} {Where}")
                               .Replace("{command}", command.ToString())
                               .Replace("{table}", this.GetType().Name)
                               .Replace("{what}", BuildSelectArgs())
                               .Replace("{Where}", BuildWhereArgs())
                               .ToString();

            return(this);
        }