If somebody like the post and its helpful in your work then, add comments.

Monday, November 7, 2011

SharePoint 2010 : Enhancements for Developers in SharePoint Foundation

 

Enhancement

Benefit

Service application architecture

Redesigned infrastructure to facilitate sharing of resources across Web applications and farms.

Windows PowerShell support New support and capabilities for writing administrative scripts.
Feature versioning and upgrade New support for versioning and upgrading features.

SharePoint Developer Tools for Visual Studio 2010

A first-class development experience for SharePoint developers (finally).

Sandboxed solutions

New support for deploying solution packages at site collection scope in a sandboxed environment.

New features for throttling lists and controlling
query execution

Enhanced support for stabilizing the farm by prohibiting large,inefficient queries.

New events for sites, lists, and workflows

Additional events for developers to hook up event handlers.
LINQ to SharePoint provider

New support for writing LINQ query statements to access SharePoint list data.

REST-based access to SharePoint list items

New support for accessing SharePoint list data from across the network using REST-based Web service calls.

Client-side object model

Ability to leverage the SharePoint object model from across the network when programming with .NET, Silverlight, and JavaScript

Enhanced support for integrating Silverlight applications

Rich support for deploying and versioning Silverlight applications within a SharePoint environment

Claims-based security

New authentication support for leveraging external identity management systems and extending access control in SharePoint sites using custom claims

Business Connectivity Services (BCS) and external lists

New support for creating read-write connections to back-end databases and line-of-business systems and exposing their data as lists within SharePoint sites

NET Assembly Connectors for BCS

Support for creating a custom component to integrate any data source with the BCS.

Wednesday, November 2, 2011

SharePoint 2010 : Programmatically Add a Term to The SharePoint 2010 Term Store.

The new metadata features in 2010 are of great value to us. With each of our assets having a unique accounting identifier and our document contributors having room for improvement with naming documents favorably for search it could be a life savor!

Add following reference to the solution

using System.Globalization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Taxonomy;
 
To add term in the term store, add following code


SPSite site = new SPSite("http://newdemo2010");
TaxonomySession taxSession = new TaxonomySession(site);
TermStore termStore = taxSession.TermStores["Managed Metadata Service"];
Group storeGroup = termStore.Groups["BPTemplate"];
TermSet termSet = storeGroup.TermSets["Timecard"];

termSet.CreateTerm(pTerm, 1033); //It will term to the root term

Term propertyIdsTerm = termSet.Terms["TimeLog"];
propertyIdsTerm.CreateTerm(pTerm, CultureInfo.CurrentCulture.LCID); //This
will add term to a term
termStore.CommitAll();
wd