Exemple #1
0
        private int IndexOfRelation(DbRelation rel)
        {
            for (int idx = 0; idx < this.ForeignKeys.Length; idx++)
            {
                if (rel.HasEqualForeignKeyFieldsAs(this.ForeignKeys[idx]))
                    return idx;
            }

            return -1;
        }
        private static int IndexOfRelation(DbRelation[] foreignKeys, DbRelation rel)
        {
            for (int idx = 0; idx < foreignKeys.Length; idx++)
            {
                if (rel.HasEqualForeignKeyFieldsAs(foreignKeys[idx]))
                    return idx;
            }

            return -1;
        }