private void CheckColumnDuplication(IESI.ISet<string> distinctColumns, IEnumerable<ISelectable> columns) { foreach (ISelectable s in columns) { if(!s.IsFormula) { Column col = (Column)s; if (!distinctColumns.Add(col.Name)) { throw new MappingException(string.Format("Repeated column in mapping for collection: {0} column: {1}", Role, col.Name)); } } } }
protected internal void CheckColumnDuplication(IESI.ISet<string> distinctColumns, IEnumerable<ISelectable> columns) { foreach (ISelectable columnOrFormula in columns) { if (!columnOrFormula.IsFormula) { Column col = (Column)columnOrFormula; if (!distinctColumns.Add(col.Name)) { // TODO: Check for column duplication //throw new MappingException("Repeated column in mapping for entity: " + EntityName + " column: " + col.Name + // "(should be mapped with insert=\"false\" update=\"false\")"); } } } }