 |
|
| View previous topic :: View next topic |
| Author |
Message |
Nick Crisp Guest
|
Posted: Wed Oct 10, 2007 1:43 pm Post subject: ASP Providers (Again...) |
|
|
Hi
ASP providers are all working. Saving settings for Users, Web Parts etc....
How can I use the ASP_User class in my model. My application stores
information from lots of companies, and I would like to link a ASP_User to a
company so that when they logon, they get the information related to their
company. My existing version has its own User class but I would like to
replace it with the ASP_User so I can use the personalisation for WebParts
and Role model.
I'm using EcoModeler and have tried adding a reference in that to
Eco.Web.Providers, but no classes appear to use.
Any thoughts on how to accomplish this?
Thanks
Nick |
|
| Back to top |
|
 |
Jonas Hogstrom Guest
|
Posted: Wed Oct 10, 2007 5:22 pm Post subject: Re: ASP Providers (Again...) |
|
|
Nick Crisp wrote:
| Quote: | Hi
ASP providers are all working. Saving settings for Users, Web Parts
etc....
How can I use the ASP_User class in my model. My application stores
information from lots of companies, and I would like to link a
ASP_User to a company so that when they logon, they get the
information related to their company.
|
Good thinking. That was exactly one of the ideas I had when developing
this feature, that the classes should be integrated with the rest of
the classes in the application.
| Quote: | My existing version has its
own User class but I would like to replace it with the ASP_User so I
can use the personalisation for WebParts and Role model.
I'm using EcoModeler and have tried adding a reference in that to
Eco.Web.Providers, but no classes appear to use.
|
I'm not sure exactly how EcoModeler supports adding associations to
imported packages. In RadStudio, you would add the package
"EcoAspProviderPackage.ecopkg" as a "referred Eco Package" (rightclick
the project in the projectmanager).
I have a creeping feeling that that file is not shipping. Just in case
it is not on your harddisk, please download it from the following
location:
http://capableobjects.com/download/EcoAspProviderPackage.ecopkg
Also, please log a bug that it is not in the installer so I can fix it
for a future release.
In the RadStudio modeler, if you add an association to a class in a
refered package, it will become non-navigable from the refered class.
In your case, this means that you won't be able to use OCL to navigate
from the User class to the Company class. I had a discussion with
Anders about this the other day and he claims that in OCL2, it is
expressly allowed to navigate like that, so I will remove that
restriction in eco OCL in the near future.
/Jonas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|