I don't have it pulled up, but isn't AddFromAssemblyOf<T> a method, with parens? Like AddFromAssemblyOf<T>() ?
On Thu, May 21, 2009 at 8:41 AM, Codecommando <[email protected]>wrote: > > Hi! > I'm having a problem configuring my mappings and its driving me batty > trying to figure it out. Its probably something simple that I'm > overlooking .... I've a class library that holds my entities and > mappings > > namespace FluentQualityObjects > { > public class FluentQuality > { > private ISessionFactory session; > > public FluentQuality(string connectionString) > { > session = Fluently.Configure() > .Database(MsSqlConfiguration.MsSql2005 > .ConnectionString(c => c.Is(connectionString)) > ) > .Mappings(m => > m.FluentMappings.AddFromAssemblyOf<FluentQuality>) > .ExposeConfiguration(BuildSchema) > .BuildSessionFactory(); > } > . > . > . > . > } > } > > > And one of my Entities - > > namespace FluentQualityObjects.Entities > { > public class Department > { > public virtual int DepartmentId { get; private set; } > public virtual string Abbr { get; private set; } > public virtual string ShortDesc { get; private set; } > public virtual string LongDesc { get; private set; } > > } > } > > Now, when I try to compile the library, I get the following error on > my AddFromAssemblyOf line - > > Only assignment, call, increment, decrement, and new object > expressions can be used as a statement > > Any ideas? > > Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
