Saturday, February 13, 2010

Programmer - Using "ObjectName" instead of "Namespace.ObjectName" in a view

Programmer Question

I'm really not sure how to ask this, so forgive me if it sounds a bit off.



I have an IPerson interface, a Student : IPerson class and an Employee : IPerson in the Project.Data namespace.



In my controller, I add the reference for Project.Data and Project.Services and add using statements where appropriate.



In my view, I create a strongly-typed view to Project.Data.IPerson - so I can dynamically render views based on type.



What I want is for Model.getType() to return "Student" not "Project.Data.Student" - is this possible?

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails