Esempio n. 1
0
        public void ComparingCompoundMember_WithConstant()
        {
            var someID = new MetaID(0, "C0");

            CheckQuery(
                from c in Cooks
                where c.KnifeID.Equals(someID)
                select c.ID,
                "SELECT [t0].[ID] AS [value] FROM [CookTable] AS [t0] "
                + "WHERE (([t0].[KnifeID] = @1) AND ([t0].[KnifeClassID] = @2))",
                new CommandParameter("@1", 0),
                new CommandParameter("@2", "C0"));
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.minItem)
                {
                    hashcode = (hashcode * 397) + MinItem.GetHashCode();
                }
                if (__isset.metaID)
                {
                    hashcode = (hashcode * 397) + MetaID.GetHashCode();
                }
                if (__isset.count)
                {
                    hashcode = (hashcode * 397) + Count.GetHashCode();
                }
            }
            return(hashcode);
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.metaID)
                {
                    hashcode = (hashcode * 397) + MetaID.GetHashCode();
                }
                if (__isset.parentID)
                {
                    hashcode = (hashcode * 397) + ParentID.GetHashCode();
                }
                if (__isset.childCount)
                {
                    hashcode = (hashcode * 397) + ChildCount.GetHashCode();
                }
                if (__isset.isSmallSet)
                {
                    hashcode = (hashcode * 397) + IsSmallSet.GetHashCode();
                }
            }
            return(hashcode);
        }
 public void ComparingCompoundMember_WithConstant ()
 {
   var someID = new MetaID (0, "C0");
   CheckQuery (
       from c in Cooks
       where c.KnifeID.Equals (someID)
       select c.ID,
       "SELECT [t0].[ID] AS [value] FROM [CookTable] AS [t0] "
       + "WHERE (([t0].[KnifeID] = @1) AND ([t0].[KnifeClassID] = @2))",
       new CommandParameter ("@1", 0),
       new CommandParameter ("@2", "C0"));
 }