Use this code to create record in crm
add these dlls
using Microsoft.Xrm.Sdk.Client;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
to create recode
ClientCredentials Credentials = new ClientCredentials();
Credentials.Windows.ClientCredential.UserName = "xxxxx";
Credentials.Windows.ClientCredential.Password = "xxxx";
Credentials.Windows.ClientCredential.Domain = "xxx";
Uri OrganizationUri = new Uri("http://xxxxx:5555/xxxx/XRMServices/2011/Organization.svc");
using (OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(OrganizationUri, null, Credentials, null))
{
IOrganizationService service = (IOrganizationService)serviceProxy;
Entity Contact = new Entity("contact");
Contact["name"] = "test";
Guid CID = serviceProxy.Create(Contact);
}