private static void PostCollectionSecondPass(Mapping.Collection collection) { collection.CreateAllKeys(); if (log.IsDebugEnabled) { string msg = "Mapped collection key: " + Columns(collection.Key); if (collection.IsIndexed) { msg += ", index: " + Columns(((IndexedCollection)collection).Index); } if (collection.IsOneToMany) { msg += ", one-to-many: " + collection.Element.Type.Name; } else { msg += ", element: " + Columns(collection.Element); msg += ", type: " + collection.Element.Type.Name; } log.Debug(msg); } }
private static void PostCollectionSecondPass(Mapping.Collection collection) { collection.CreateAllKeys(); if (log.IsDebugEnabled) { string msg = "Mapped collection key: " + string.Join(",", collection.Key.ColumnIterator.Select(c => c.Text).ToArray()); if (collection.IsIndexed) { msg += ", index: " + string.Join(",", ((IndexedCollection)collection).Index.ColumnIterator.Select(c => c.Text).ToArray()); } if (collection.IsOneToMany) { msg += ", one-to-many: " + collection.Element.Type.Name; } else { msg += ", element: " + string.Join(",", collection.Element.ColumnIterator.Select(c => c.Text).ToArray()); msg += ", type: " + collection.Element.Type.Name; } log.Debug(msg); } }