tag:blogger.com,1999:blog-1688176320920284646.post3329920697992891577..comments2023-12-20T10:24:23.540+00:00Comments on A day in the life of...: RolesUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1688176320920284646.post-5920950106868497982007-03-29T12:09:00.000+01:002007-03-29T12:09:00.000+01:00The method you mention will return the first insta...The method you mention will return the first instance of that type. I'd say that if you want to record multiple employments for the same person you should do this.<BR/><BR/>EmployeeRole 1---* Employment<BR/><BR/>Where Employment has start/end dates, employee number etc.Peter Leslie Morrishttps://www.blogger.com/profile/09377536995235480828noreply@blogger.comtag:blogger.com,1999:blog-1688176320920284646.post-38837196612857400012007-03-21T19:53:00.000+00:002007-03-21T19:53:00.000+00:00ahh, except that's C# right. darn i'm an idiot, we...ahh, except that's C# right. darn i'm an idiot, well my question still stands....darkadepthttps://www.blogger.com/profile/13544241589328533712noreply@blogger.comtag:blogger.com,1999:blog-1688176320920284646.post-11467531417391451572007-03-21T19:44:00.000+00:002007-03-21T19:44:00.000+00:00In the last part of your post you mention adding t...In the last part of your post you mention adding the HasRole and GetRole methods. Does this allow a Person to have multiple EmployeeRoles? It seems like this line:<BR/><BR/>EmployeeRole employeeRole := RoleHolder.GetRole(typeof(EmployeeRole)) as EmployeeRole;<BR/><BR/>does not allow that. Or does that line create a new role for that Person? I'm coming from the C++ world and Java syntax is a little foreign to me.darkadepthttps://www.blogger.com/profile/13544241589328533712noreply@blogger.com