here it is:

ActiveRecord tried to infer details about the relation User.Roles but
it could not find information about the specified target type
Timesheet.Models.Role. If you have mapped a Dictionary of value types,
please make sure you have specified the Table property.


[ActiveRecordException: ActiveRecord tried to infer details about the
relation User.Roles but it could not find information about the
specified target type Timesheet.Models.Role. If you have mapped a
Dictionary of value types, please make sure you have specified the
Table property.]
 
Castle.ActiveRecord.Framework.Internal.SemanticVerifierVisitor.VisitHasMany(HasManyModel
model) +1153
   Castle.ActiveRecord.Framework.Internal.HasManyModel.Accept(IVisitor
visitor) +10
 
Castle.ActiveRecord.Framework.Internal.AbstractDepthFirstVisitor.VisitNodes(IEnumerable
nodes) +90
 
Castle.ActiveRecord.Framework.Internal.AbstractDepthFirstVisitor.VisitModel(ActiveRecordModel
model) +202
 
Castle.ActiveRecord.Framework.Internal.SemanticVerifierVisitor.VisitModel(ActiveRecordModel
model) +216
 
Castle.ActiveRecord.Framework.Internal.ActiveRecordModel.Accept(IVisitor
visitor) +10
 
Castle.ActiveRecord.Framework.Internal.AbstractDepthFirstVisitor.VisitNodes(IEnumerable
nodes) +90
 
Castle.ActiveRecord.ActiveRecordStarter.RegisterTypes(ISessionFactoryHolder
holder, IConfigurationSource source, IEnumerable`1 types, Boolean
ignoreProblematicTypes) +140
 
Castle.ActiveRecord.ActiveRecordStarter.Initialize(IConfigurationSource
source, Type[] types) +266
   Castle.ActiveRecord.ActiveRecordStarter.Initialize(Assembly
assembly, IConfigurationSource source) +56
   Timesheet.Web.Global.Application_Start(Object sender, EventArgs e)
in D:\Projects\otis\branches\v2.0\Timesheet.Web\Global.asax.cs:54

[Exception: An exception happened on Global application or on a module
that run before MonoRail's module. MonoRail will not be initialized
and further requests are going to fail. Fix the cause of the error
reported below.]
   Castle.MonoRail.Framework.EngineContextModule.Init(HttpApplication
context) +302
   System.Web.HttpApplication.InitModulesCommon() +65
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context,
HttpApplicationState state, MethodInfo[] handlers) +729
 
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context) +298
 
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
+289




On Sep 22, 7:05 pm, "Ken Egozi" <[EMAIL PROTECTED]> wrote:
> The exception message is very useful here (like in most parts of the Castle
> stack)
>
> "...please make sure you have specified the Table property..." - should work
>
>
>
> On Mon, Sep 22, 2008 at 6:58 PM, bdaniel7 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I want to have this structure:
> > There are just few roles and i want to keep them as an enum. The
> > values should be kept in an association table, UserRoles, with id's of
> > users and roles.
>
> > public class User
> > {
> > ...
>
> >        [HasMany( Table="Role" )]
> >        public virtual IList<Role> Roles
>
> > ...
> > }
>
> > public enum Role
> > {
> >        Employee,
> > ...
> > }
>
> > The current mapping is not working as I receive this:
>
> > "ActiveRecord tried to infer details about the relation User.Roles but
> > it could not find information about the specified target type Role. If
> > you have mapped a Dictionary of value types, please make sure you have
> > specified the Table property"
>
> > How can i map it?
>
> > Thanks,
> > Dan
>
> --
> Ken 
> Egozi.http://www.kenegozi.com/bloghttp://www.musicglue.comhttp://www.castleproject.orghttp://www.gotfriends.co.il
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to