-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to use strongly typed models from DLL's? #7
Comments
I don't quite get what you mean. CodeGen generates files in the web project. Umbraco finds all types derived from PublishedContentModel and pushes them to views inherited from UmbracoViewPage. |
Sorry, what I meant was, does CodeGen do code first with models from a different project. Let's say I define some classes in an assembly and then drop that assembly into the bin of the site, will CodeGen pick up those models? For example:
If this code is in test.dll and I drop it into the bin on the site, will CodeGen pick it up generate the document type? |
It will only pick up files from the model folder you point it to. (config\codegen.config or developer\config in backoffice) Default is ~/models/documenttypes. It parses .cs files, it doesn't use reflection. |
It doesn't appear that CodeGen picks up models built into a dll that can be deployed to the site. Looking at the code, it doesn't appear to be doing any reflection for those types. Is there any particular reason for this?
The text was updated successfully, but these errors were encountered: