Episerver - Why BlockData doesn't implement IContent -


does knows why blockdata class doesn't directly implement icontent? know during blockdata being retrieve database, proxy created castle implements icontent.

if stackoverflow isn't suitable place kind of question, please move it.

johan björnfot @ episerver explains of details in post.

excerpt:

"in previous versions of cms pages (pagedata) content type content repository (traditionally datafactory) handled. in cms7 has changed content repository (icontentrepository) handles icontent instances. means requirement .net type possible save/load content repository implements interface episerver.core.icontent.

there implementations of icontent built cms pagedata , contentfolder (used group shared block instances) , possible register custom icontent implementations.if @ blockdata though notice doesn’t implement icontent, how shared block instances handled?

the answer during runtime when shared block instance created (e.g. through call icontentrepository.getdefault t type inheriting blockdata) cms create new .net type inheriting t using technic called mixin new generated subclass implement interfaces (including icontent)."


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -