示例#1
0
 /// <summary>
 ///     clone from other SQLcommandSet
 /// </summary>
 /// <param name="source">SQLcommandSet to clone</param>
 public SqLcommandSet(SqLcommandSet source)
 {
     Select = new SqLcommand(source.Select);
     Delete = new SqLcommand(source.Delete);
     Insert = new SqLcommand(source.Insert);
     Update = new SqLcommand(source.Update);
 }
示例#2
0
        /// <summary>
        ///     clone from other SQLCommand
        /// </summary>
        /// <param name="source">SQLCommand to clone</param>
        public SqLcommand(SqLcommand source)
        {
            Type   = source.Type;
            Fields = new List <String>(source.Fields);
            //source.fields.Select(item => (string)item.Clone()).ToList();//clone field list
            SqlJoinParameters = new Dictionary <string, SqlJoinParameter>(source.SqlJoinParameters);

            Body     = source.Body;
            Limit    = source.Limit;
            Offset   = source.Offset;
            Distinct = source.Distinct;
            Where    = source.Where;
            OrderBy  = source.OrderBy;
            GroupBy  = source.GroupBy;
        }