Created
September 10, 2013 18:25
-
-
Save gscattolin/6513456 to your computer and use it in GitHub Desktop.
Fluent NHibernate Get Info on Tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var metadata = sf.GetAllClassMetadata().ToList(); | |
| IDictionary<string,IClassMetadata> data = sf.GetAllClassMetadata(); | |
| //Dictionary<string, SingleTableEntityPersister> lstTable = sf.GetAllClassMetadata().ToDictionary(x => x.Key, x=> x.Value); | |
| foreach (var table in metadata) | |
| { | |
| Console.WriteLine("List {0}", table.ToString()); | |
| } | |
| foreach(KeyValuePair<string,IClassMetadata> entry in data) | |
| { | |
| Console.WriteLine("Value {0} {1}",entry.Key,entry.Value.EntityName); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment