SharePoint list definition using the Template pattern(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 4 months ago

Books on SharePoint often show how to create lists from code by calling the SharePoint API from directly within a feature receiver. This event handler contains column names as in-place string literals, it updates the default view, and so on. While such an approach provides a nice demonstration of the SharePoint API, it also tends to carry over into production code. My take on feature receivers, however, is that they should contain the least possible amount of code. Staying true to object-orientation and the separation of concerns, list definition and creation should be abstracted into a common set of classes and methods.

add a comment |category: |Views: 8

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story