Creating CustomList with Columns in Object Model
Creating Custom List with Fields: Steps to Create Project: Go to -> Start menu -> visual studio 2010 -> select new Project -> select c# -> Console Application -> select Class1.cs Template. Give the Name for the project as StudentsList -> Click Ok. With in the Solution Explorer -> Right Click on StudentsList Name. Select Addreference… -> select Browse Tab. -> then Go To sharepoint root Directory for adding the Microsoft.Sharepoint.Dll Reference file. Path = C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI Then select the Microsoft.Sharepoint.Dll file then click Ok. The Reference file will be added to your project. Then Go to Class1.CS file. And Write Code As shown bellow. Aim: Creating Students List With StudentName Field using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; namespace ListData { ...