Example #1
0
        private void ParseLookup(EntityMap entity, XmlNode attributeNode, string defaultSchema)
        {
            string member    = this.GetValue(attributeNode, "member");
            string field     = this.GetValue(attributeNode, "field");
            string nullValue = this.GetValue(attributeNode, "nullValue", null);
            string alias     = this.GetValue(attributeNode, "alias", member);
            string table     = this.GetTableName(attributeNode, "table", defaultSchema);
            string source    = this.GetValue(attributeNode, "foreignKey");
            string dest      = this.GetValue(attributeNode, "lookupKey");
            string parameter = this.GetValue(attributeNode, "parameter");

            entity.AddLookup(member, field, nullValue, alias, parameter, table, source, dest, this.provider);
        }
Example #2
0
        private void ParseLookup(EntityMap entity, XmlNode attributeNode)
        {
            string member = this.GetValue(attributeNode, "member");
            string field = this.GetValue(attributeNode, "field");
            string nullValue = this.GetValue(attributeNode, "nullValue", null);
            string alias = this.GetValue(attributeNode, "alias", member);
            string table = this.GetValue(attributeNode, "table");
            string source = this.GetValue(attributeNode, "foreignKey");
            string dest = this.GetValue(attributeNode, "lookupKey");
            string parameter = this.GetValue(attributeNode, "parameter");

            entity.AddLookup(member, field, nullValue, alias, parameter, table, source, dest, this.provider);
        }