Differences between Server-Side Object Model and the Client-Side Object Model

Here are differences between Server-Side Object Model and the Client-Side Object Model?

Differences between Server-Side Object Model and the Client-Side Object Model

 

Client-Side Object Model(CSOM) : By using the Client-Side Object Model(CSOM), We are able to access the data the System where your SharePoint is not installed , you can access the data through Web Services , REST, APIs or Java scripts

 

You can use the SharePoint client object model (CSOM) to fetch, update, and manage data in SharePoint 2013. SharePoint 2013 makes the CSOM available in several forms such as NET Framework redistributable assemblies, JavaScript library,REST/OData endpoints,Windows Phone assemblies.Silverlight redistributable assemblies

 

CSOM is a Microsoft generated collection of libraries that acts as a proxy to the server-side object model
Client Object Model was a new feature of SharePoint 2010, but In SharePoint 2013 it has been enhanced and improved as it has additions for working with search, BCS, taxonomies, workflows and user profiles etc.

 

There are two assemblies to be referred for working with the Client Object Model.

  1. Microsoft.SharePoint.Client.dll
  2. Microsoft.SharePoint.Client.Runtime.dll

Following is an example of retrieving a list from the server using Client Object Model.:

ClientContext context = new ClientContext("http://server");
List list = context.Web.Lists.GetByTitle("Tasks");
context.Load(list);
context.ExecuteQuery();

Console.WriteLine(list.Title);
Console.ReadKey(false);


Server-Side Object Model (SSOM) : By using the  Server-Side Object Model (SSOM) you write the code to access the SharePoint data on machine where SharePoint Server is installed, you can use C# or Vb.net

Server Object Model core assembly is Microsoft.SharePoint.dll which is installed in the Global Assembly Cache

 

 

All Rights Reserved 2019 | DesignzRush (OPC) Pvt. Ltd.
Inline
Inline