Exemplo n.º 1
0
        public FixSql GetAndCloneFixSqlByName(string name)
        {
            FixSql tempResult = GetFixSqlByName(name);

            if (tempResult == null)
            {
                return(null);
            }

            FixSql tempInfo = tempResult.Clone();

            return(tempInfo);
        }
Exemplo n.º 2
0
        public FixSql Clone()
        {
            FixSql tempInfo = new FixSql();

            tempInfo.SelectFieldInfo = new SelectField();
            tempInfo.TableNameInfo   = new TableName();
            tempInfo.OrderFieldInfo  = new OrderField();

            tempInfo.Name = this.Name;
            tempInfo.SelectFieldInfo.Value = this.SelectFieldInfo.Value;
            tempInfo.TableNameInfo.Value   = this.TableNameInfo.Value;
            tempInfo.OrderFieldInfo.Value  = this.OrderFieldInfo.Value;

            return(tempInfo);
        }
Exemplo n.º 3
0
        public FixSql GetFixSqlByName(string name)
        {
            FixSql tempResult = null;

            if (FixSqlList != null)
            {
                foreach (FixSql fixSql in FixSqlList)
                {
                    if (fixSql.Name.ToUpper() == name)
                    {
                        tempResult = fixSql;
                        continue;
                    }
                }
                //tempResult = (from c in FixSqlList where c.Name.ToUpper() == name.ToUpper() select c).Take(1).SingleOrDefault();
            }

            if (tempResult == null)
            {
                tempResult = new FixSql();
            }

            return(tempResult);
        }