Hi, Does the AutoPersistenceModel do enums? The following code doesn't seem to be creating a column in the DB for PhoneNumberType ... any suggestions as to why the PhoneNumber table this creates doesn't have a PhoneNumberType column???
Thanks much! Jereme public class PhoneNumber { public int id { get; set; public string Number { get; set; } public PhoneNumberType { get; set; } public enum PhoneNumberType { Home, Work } public static class BuildDatabase { public static void GenerateDatabaseFromModel() { var config = new Configuration(); MySQLConfiguration.Standard.ShowSql().ConnectionString.Is ("Database=test;Data Source=localhost;User Id=User;Password=Pass").ConfigureProperties(config); AutoPersistenceModel.MapEntitiesFromAssemblyOf<PhoneNumber> () .Where(t => t.Namespace == "namespace") .WithConvention(c => { c.GetForeignKeyName = p => p.Name + "Id"; }).Configure(config); var exporter = new SchemaExport(config); exporter.Execute(true, true, false, true); session = config.BuildSessionFactory().OpenSession(); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---